@Test
public void testFindTranslations() throws IOException {

	File file = mock(File.class);
	when(file.getName()).thenReturn("foo.properties");
	when(file.getAbsolutePath()).thenReturn(new File("foo.properties").getAbsolutePath());
	when(file.getCanonicalPath()).thenReturn(new File("foo.properties").getCanonicalPath());
	when(file.getPath()).thenReturn(new File("foo.properties").getPath());
	File parent = mock(File.class);
	when(file.getParentFile()).thenReturn(parent);
	File[] children = new File[]{new File("foo.properties"),new File("other_fr.properties"),new File("foo_de.properties"),new File("foo_en_US.properties")};
	when(parent.listFiles()).thenReturn(children);
	Map<Locale, File> result = getFixture().findTranslations(file, mock(ScanConfiguration.class));
	assertEquals(2, result.size());
	assertEquals("foo_de.properties", result.get(new Locale("de")).getName());
	assertEquals("foo_en_US.properties", result.get(new Locale("en","US")).getName());
}