@Test
public void testGetBundlePrefix_inWrongBasePath() {

  final Path ignorableBasePath= Paths.get("/some/path/src/main/resources");
  final Path otherBasePath= Paths.get("/some/other/path");
  final ResourceBundleContentHelper helper= new ResourceBundleContentHelper(ignorableBasePath);
  assertThatIllegalArgumentException().isThrownBy(() -> {
    helper.getBundlePrefix(otherBasePath.resolve("i18n/messages_de.properties"));
  }).withMessage("All files should live below the ignorable base path /some/path/src/main/resources. Given path is /some/other/path/i18n/messages_de.properties");
}