### Question:
PhysicalMachineResource extends AbstractResource { @POST public PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine, @HeaderParam(AUTH_HEADER) final String auth) { checkSystem(); String[] credentials = getBasicAuthCredentials(auth); PhysicalMachine pm; if (credentials.length != 0) { pm = vsmService.monitor(physicalMachine.getAddress(), physicalMachine.getType(), credentials[0], credentials[1]); } else { pm = vsmService.monitor(physicalMachine.getAddress(), physicalMachine.getType()); } return toDto(pm); } PhysicalMachineResource(); @GET PhysicalMachinesDto getMonitoredMachines(
        @QueryParam(ADDRESS_QUERY_PARAM) String physicalMachineAddress); @POST PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine,
        @HeaderParam(AUTH_HEADER) final String auth); @DELETE @Path(PHYSICALMACHINE_PATH) void shutdown(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId); @GET @Path(VIRTUALMACHINE_PATH) void getState(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
        @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName); @DELETE @Path(VIRTUALMACHINE_PATH) void invalidateLastKnownState(
        @PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
        @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName); static final String PHYSICALMACHINES_PATH; static final String PHYSICALMACHINE_PARAM; static final String PHYSICALMACHINE_PATH; static final String VIRTUALMACHINE_PARAM; static final String VIRTUALMACHINE_PATH; }### Answer:
@Test public void test_monitor() { monitor("10.60.1.78", Type.HYPERV_301); }