verify(equipmentServiceMock, times(1)).refreshDeviceEquipment(eq(deviceNotification), eq(deviceVO));
NotificationInsertRequest request = argument.getValue().getBody().cast(NotificationInsertRequest.class);
assertEquals(Action.NOTIFICATION_INSERT_REQUEST.name(), request.getAction());
assertEquals(deviceNotification, request.getDeviceNotification());
}
<BUG>@Test
public void testSubmitDeviceNotificationWithRefreshDeviceStatusShouldInsertTwoNotifications() throws Exception {</BUG>
final DeviceDao deviceDaoMock = Mockito.mock(DeviceDao.class);
Whitebox.setInternalState(notificationService, "deviceDao", deviceDaoMock);
final DeviceVO deviceVO = new DeviceVO();

verify(equipmentServiceMock, times(1)).refreshDeviceEquipment(eq(deviceNotification), eq(deviceVO));
NotificationInsertRequest request = argument.getValue().getBody().cast(NotificationInsertRequest.class);
assertEquals(Action.NOTIFICATION_INSERT_REQUEST.name(), request.getAction());
assertEquals(deviceNotification, request.getDeviceNotification());
}
@Test
@DirtiesContext(methodMode = DirtiesContext.MethodMode.BEFORE_METHOD)
public void testSubmitDeviceNotificationWithRefreshDeviceStatusShouldInsertTwoNotifications() throws Exception {
final DeviceDao deviceDaoMock = Mockito.mock(DeviceDao.class);
Whitebox.setInternalState(notificationService, "deviceDao", deviceDaoMock);
final DeviceVO deviceVO = new DeviceVO();
