@Test
public void testGetBundlePrefix() {

  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/my/sub/options_de.properties"))).isEqualTo("i18n/my/sub");
}