AthenzDomain { public String getNameSuffix() { return name.substring(lastDot() + 1); } @JsonCreator  AthenzDomain(String name); @JsonValue String getName(); boolean isTopLevelDomain(); AthenzDomain getParent(); String getNameSuffix(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void domain_name_suffix_is_the_suffix_after_last_dot() { assertEquals("myapp", new AthenzDomain("home.john.myapp").getNameSuffix()); }