@Test
public void onlyPrefixShouldFailMapFromProperties() throws Exception {

  try (InputStream is = MapsTest.class.getClassLoader().getResourceAsStream("wrong.properties")) {
    try {
      Maps.fromProperties(is);
      fail();
    } catch (IllegalArgumentException expected) {
    }
  }
}