@Test
public void acceptReturnFalseIfPluginRefusesResource() throws IOException {

    Properties resource = mock(Properties.class);
    String path = "/a/b/c.properties";
    ScannerPlugin<Properties, ?> selectedPlugin = mock(ScannerPlugin.class);
    doReturn(Boolean.FALSE).when(selectedPlugin).accepts(Mockito.anyObject(), Mockito.eq(path), Mockito.eq(scope));
    ScannerImpl scanner = new ScannerImpl(configuration, emptyMap(), context, scannerPluginRepository);
    boolean result = scanner.accepts(selectedPlugin, resource, path, scope);
    assertThat(result, is(false));
}