assertEquals(device1.getGuid(), devices.get(0).getGuid());
assertEquals(device2.getGuid(), devices.get(1).getGuid());
}).get(2, TimeUnit.SECONDS);
verify(requestHandler, times(1)).handle(argument.capture());
}
<BUG>@Test
public void should_save_and_find_by_network_id() throws Exception {</BUG>
final DeviceVO device = DeviceFixture.createDeviceVO();
final DeviceClassUpdate dc = DeviceFixture.createDeviceClass();
final DeviceUpdate deviceUpdate = DeviceFixture.createDevice(device.getGuid(), dc);

assertEquals(device1.getGuid(), devices.get(0).getGuid());
assertEquals(device2.getGuid(), devices.get(1).getGuid());
}).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_network_id() throws Exception {
final DeviceVO device = DeviceFixture.createDeviceVO();
final DeviceClassUpdate dc = DeviceFixture.createDeviceClass();
final DeviceUpdate deviceUpdate = DeviceFixture.createDevice(device.getGuid(), dc);
