Map<String, Object> params = new HashMap<>();
params.put("waitTimeout", 1);
DeviceCommand updatedCommand = performRequest("/device/" + guid + "/command/" + command.getId() + "/poll", "GET", params, singletonMap(HttpHeaders.AUTHORIZATION, tokenAuthHeader(ACCESS_KEY)), command, NO_CONTENT, DeviceCommand.class);
assertNull(updatedCommand);
}
<BUG>@Test
public void should_get_response_with_status_200_and_updated_command_when_command_was_processed_and_waitTimeout_is_0() throws Exception {</BUG>
DeviceClassEquipmentVO equipment = DeviceFixture.createEquipmentVO();
DeviceClassUpdate deviceClass = DeviceFixture.createDeviceClass();
deviceClass.setEquipment(Optional.of(Collections.singleton(equipment)));

Map<String, Object> params = new HashMap<>();
params.put("waitTimeout", 1);
DeviceCommand updatedCommand = performRequest("/device/" + guid + "/command/" + command.getId() + "/poll", "GET", params, singletonMap(HttpHeaders.AUTHORIZATION, tokenAuthHeader(ACCESS_KEY)), command, NO_CONTENT, DeviceCommand.class);
assertNull(updatedCommand);
}
@Test
@DirtiesContext(methodMode = DirtiesContext.MethodMode.BEFORE_METHOD)
public void should_get_response_with_status_200_and_updated_command_when_command_was_processed_and_waitTimeout_is_0() throws Exception {
DeviceClassEquipmentVO equipment = DeviceFixture.createEquipmentVO();
DeviceClassUpdate deviceClass = DeviceFixture.createDeviceClass();
deviceClass.setEquipment(Optional.of(Collections.singleton(equipment)));
