@Test
public void continueOnError() throws IOException {

    configuration.setContinueOnError(true);
    Scanner scanner = new ScannerImpl(configuration, emptyMap(), context, scannerPluginRepository);
    stubExceptionDuringScan(scanner);
    scanner.scan("test", "test", scope);
    scanner.scan("test", "test", scope);
    verify(store, times(2)).beginTransaction();
    verify(store, times(2)).rollbackTransaction();
    verify(store, never()).commitTransaction();
}