@Test
public void testCanHandle() {

  File wrongDirectory = new File("wrong");
  File correctDirectory = new File(ListProvidersScanner.LIST_PROVIDERS_DIRECTORY);
  File wrongFilenameWrongDirectory = new File(wrongDirectory, "wrong.xml");
  File wrongFilenameRightDirectory = new File(correctDirectory, "wrong.xml");
  File rightFilenameWrongDirectory = new File(wrongDirectory, "right.properties");
  File rightFilenameRightDirectory = new File(correctDirectory, "right.properties");
  ListProvidersScanner listProvidersScanner = new ListProvidersScanner();
  assertFalse(listProvidersScanner.canHandle(wrongFilenameWrongDirectory));
  assertFalse(listProvidersScanner.canHandle(wrongFilenameRightDirectory));
  assertFalse(listProvidersScanner.canHandle(rightFilenameWrongDirectory));
  assertTrue(listProvidersScanner.canHandle(rightFilenameRightDirectory));
}