test_class.declarator: statsResource
test_class.modifier: private
test_class.original_string: private StatsResource statsResource;
test_class.type: StatsResource
test_class.var_name: statsResource
test_class.declarator: machineStatsChecker
test_class.modifier: private
test_class.original_string: private MachineStatsChecker machineStatsChecker;
test_class.type: MachineStatsChecker
test_class.var_name: machineStatsChecker
test_class.file: micro-machine-stats/src/test/java/com/oath/micro/server/machine/stats/sigar/rest/StatsResourceTest.java
test_class.identifier: StatsResourceTest
test_case.body: @Test
  	public void testGetMachineStats() {
  		
  		when(machineStatsChecker.getStats((Sigar)anyObject())).thenReturn(mock(MachineStats.class));		
  		statsResource.getMachineStats();		
  		verify(machineStatsChecker, times(1)).getStats((Sigar)anyObject());
  		
  	}
test_case.class_method_signature: StatsResourceTest.testGetMachineStats()
test_case.full_signature: @Test public void testGetMachineStats()
test_case.identifier: testGetMachineStats
test_case.invocations: thenReturn when getStats anyObject mock getMachineStats getStats verify times anyObject
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetMachineStats()
focal_class.declarator: machineStatsChecker
focal_class.modifier: private final
focal_class.original_string: private final MachineStatsChecker machineStatsChecker;
focal_class.type: MachineStatsChecker
focal_class.var_name: machineStatsChecker
focal_class.file: micro-machine-stats/src/main/java/com/oath/micro/server/machine/stats/sigar/rest/StatsResource.java
focal_class.identifier: StatsResource
focal_class.interfaces: implements SingletonRestResource
focal_class.class_method_signature: StatsResource.StatsResource(MachineStatsChecker machineStatsChecker)
focal_class.full_signature: @Autowired public  StatsResource(MachineStatsChecker machineStatsChecker)
focal_class.identifier: StatsResource
focal_class.modifiers: @Autowired public
focal_class.parameters: (MachineStatsChecker machineStatsChecker)
focal_class.signature:  StatsResource(MachineStatsChecker machineStatsChecker)
focal_class.class_method_signature: StatsResource.getMachineStats()
focal_class.full_signature: @GET @Path("/machine") @Produces("application/json") public MachineStats getMachineStats()
focal_class.identifier: getMachineStats
focal_class.modifiers: @GET @Path("/machine") @Produces("application/json") public
focal_class.parameters: ()
focal_class.return: MachineStats
focal_class.signature: MachineStats getMachineStats()
focal_method.body: @GET
  	@Path("/machine")
  	@Produces("application/json")
  	public MachineStats getMachineStats() {
  		return machineStatsChecker.getStats(new Sigar());
  	}
focal_method.class_method_signature: StatsResource.getMachineStats()
focal_method.full_signature: @GET @Path("/machine") @Produces("application/json") public MachineStats getMachineStats()
focal_method.identifier: getMachineStats
focal_method.invocations: getStats
focal_method.modifiers: @GET @Path("/machine") @Produces("application/json") public
focal_method.parameters: ()
focal_method.return: MachineStats
focal_method.signature: MachineStats getMachineStats()