@Test
public void testGetBundlePrefix_byPathOrFile() {

  final Path ignorableBasePath= Paths.get("/some/path/src/main/resources");
  final ResourceBundleContentHelper helper= new ResourceBundleContentHelper(ignorableBasePath);
  assertThat(helper.getBundlePrefix(ignorableBasePath.resolve("i18n/messages_de.properties"))).isEqualTo("i18n");
  assertThat(helper.getBundlePrefix(ignorableBasePath.resolve("i18n/messages_de.properties").toFile())).isEqualTo("i18n");
  assertThat(helper.getBundlePrefix(new File(ignorableBasePath.toFile(), "i18n/messages_de.properties"))).isEqualTo("i18n");
}