ContextId { public String getId() { return this.id; } ContextId(String id); String getId(); void setId(String id); Map<String, String> toMetaData(); static ContextId fromMetaData(Map<String, String> metaData); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static Map<String, String> getContextIdWildCard(); static final String META_KEY_ID; }
@Test public void testContextIdConstructor_shouldInitializeId() throws Exception { ContextId contextId = new ContextId("someId"); assertThat(contextId.getId(), is("someId")); }