assertNotNull(devices);
assertEquals(device.getGuid(), devices.get(0).getGuid());
}).get(2, TimeUnit.SECONDS);
verify(requestHandler, times(1)).handle(argument.capture());
}
<BUG>@Test
public void should_save_and_find_by_device_class_name() throws Exception {</BUG>
final DeviceVO device = DeviceFixture.createDeviceVO();
DeviceClassWithEquipmentVO dc = DeviceFixture.createDCVO();
dc = deviceClassService.addDeviceClass(dc);

assertNotNull(devices);
assertNotEquals(0, devices.size());
assertEquals(device1.getGuid(), devices.get(0).getGuid());
assertNotNull(devices.get(0).getNetwork());
assertEquals(network1.getId(), devices.get(0).getNetwork().getId());
}).get(2, TimeUnit.SECONDS);
verify(requestHandler, times(1)).handle(argument.capture());
}
@Test
@DirtiesContext(methodMode = DirtiesContext.MethodMode.BEFORE_METHOD)
public void should_save_and_find_by_device_class_id() throws Exception {
final DeviceVO device = DeviceFixture.createDeviceVO();
DeviceClassWithEquipmentVO dc = DeviceFixture.createDCVO();
dc = deviceClassService.addDeviceClass(dc);
