JcrNs implements JsonObjectConvertible, Comparable<JcrNs> { public static @NotNull JcrNs create(final @NotNull String prefix, final @NotNull String uri) { final JcrNs ns = new JcrNs(); ns.setPrefix(prefix); ns.setUri(uri); return ns; }  @NotNull static JcrNs.JsonKeys keys(); String getPrefix(); void setPrefix(String prefix); String getUri(); void setUri(String uri); static @Nullable JcrNs fromJson(final @NotNull JsonObject json); static @NotNull JcrNs create(final @NotNull String prefix, final @NotNull String uri); @Override boolean equals(final Object o); @Override int hashCode(); @Override JsonObject toJson(); @Override String toString(); @Override int compareTo(final @NotNull JcrNs o);  }
@Test public void testCreate() { JcrNs complete = JcrNs.create(prefix, uri); assertEquals("complete prefix should be", prefix, complete.getPrefix()); assertEquals("complete prefix should be", uri, complete.getUri()); }