@Test
public void testGetAdministrationTaskForBarcodeNoMedication()
{

  Mockito
      .when(medicationsDao.getMedicationIdForBarcode("222"))
      .thenReturn(null);
  final BarcodeTaskSearchDto dto = barcodeTaskFinder.getAdministrationTaskForBarcode("1", "222", testTime);
  assertEquals(BarcodeSearchResult.NO_MEDICATION, dto.getBarcodeSearchResult());
  assertNull(dto.getTaskId());
}