ExternalScheme implements Serializable, Comparable<ExternalScheme> { @FromString public static ExternalScheme of(final String name) { ArgumentChecker.notEmpty(name, "name"); return s_cache.getUnchecked(name); } private  ExternalScheme(final String name); @FromString static ExternalScheme of(final String name); String getName(); @Override int compareTo(final ExternalScheme other); @Override boolean equals(final Object obj); @Override int hashCode(); @Override @ToString String toString();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_null() { ExternalScheme.of(null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_emptyName() { ExternalScheme.of(""); }