ThingTag extends AbstractEntityIdWithRevision<ThingId> { public static ThingTag of(final ThingId id, final long revision) { return new ThingTag(id, revision); } private  ThingTag(final ThingId id, final long revision); static ThingTag of(final ThingId id, final long revision); static ThingTag fromJson(final JsonObject jsonObject);  }
@Test public void toJsonReturnsExpected() { final ThingTag underTest = ThingTag.of(TestConstants.Thing.THING_ID, TestConstants.Thing.REVISION_NUMBER); final JsonValue jsonValue = underTest.toJson(); assertThat(jsonValue).isEqualTo(KNOWN_JSON); }