verify(requestHandler, times(1)).handle(argument.capture());
NotificationInsertRequest request = argument.getValue().getBody().cast(NotificationInsertRequest.class);
assertEquals(Action.NOTIFICATION_INSERT_REQUEST.name(), request.getAction());
assertEquals(deviceNotification, request.getDeviceNotification());
}
<BUG>@Test
public void testSubmitDeviceNotificationWithRefreshEquipmentShouldInsertSingleNotification() throws Exception {</BUG>
final DeviceEquipmentService equipmentServiceMock = Mockito.mock(DeviceEquipmentService.class);
Whitebox.setInternalState(notificationService, "deviceEquipmentService", equipmentServiceMock);
final DeviceVO deviceVO = new DeviceVO();

verify(requestHandler, times(1)).handle(argument.capture());
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 testSubmitDeviceNotificationWithRefreshEquipmentShouldInsertSingleNotification() throws Exception {
final DeviceEquipmentService equipmentServiceMock = Mockito.mock(DeviceEquipmentService.class);
Whitebox.setInternalState(notificationService, "deviceEquipmentService", equipmentServiceMock);
final DeviceVO deviceVO = new DeviceVO();
