@Test
  public void testGetMedControlCases() {

    // Given
    DeviationCase deviationCase = new DeviationCase();
    when(medControlService.listDeviationCases(anyString(), anyBoolean()))
        .thenReturn(Arrays.asList(deviationCase));

    // When
    User user = mock(User.class);
    List<DeviationCase> medControlCases = notificationService.getMedControlCases(user);

    // Then
    assertEquals(1, medControlCases.size());
  }