    @Test(dataProvider = "getScannerData", dataProviderClass = ServiceTestDataProvider.class)
    public void testUpdate(Scanner testScanner) {

        Mockito.when(mockScannerDAO.saveAndFlush(testScanner)).thenReturn(testScanner);

        Scanner insertedScanner = scannerService.update(testScanner);
        Assert.assertNotNull(insertedScanner);
        Assert.assertEquals("testScannerImage", insertedScanner.getImage());
    }