ObjectId implements Comparable<ObjectId>, ObjectIdentifiable, Serializable { public static ObjectId of(String scheme, String value) { return new ObjectId(scheme, value); } private  ObjectId(String scheme, String value); static ObjectId of(String scheme, String value); @FromString static ObjectId parse(String str); String getScheme(); String getValue(); ObjectId withScheme(final String scheme); ObjectId withValue(final String value); UniqueId atLatestVersion(); UniqueId atVersion(final String version); @Override ObjectId getObjectId(); @Override int compareTo(ObjectId other); @Override boolean equals(Object obj); @Override int hashCode(); @Override @ToString String toString(); static final ExternalScheme EXTERNAL_SCHEME; }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_nullScheme() { ObjectId.of((String) null, "value"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_emptyScheme() { ObjectId.of("", "value"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_nullValue() { ObjectId.of("Scheme", (String) null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_emptyValue() { ObjectId.of("Scheme", ""); }