ArchiveFormatResolverImpl implements ArchiveFormatResolver { @Override public final String forPuid(String puid) { return puidsMap.get(puid); }  @Override final String forPuid(String puid); final void setPuids(Map<String, String> puids); @Override final void registerPuid(String puid, String format);  }
@Test public void testForPuid() { assertEquals("ZIP", formatResolver.forPuid("x-fmt/263")); assertEquals("TAR", formatResolver.forPuid("x-fmt/265")); assertEquals("GZ", formatResolver.forPuid("x-fmt/266")); assertNull(formatResolver.forPuid("")); }