@Test void copyReturnsNewInstanceWithSameContent() { final ObjectBodyContent copy = underTest.copy(); assertThat(copy).isNotSameAs(underTest); assertThat(copy).isEqualTo(underTest); }
@Override public ObjectBodyContent copy() { return new ObjectBodyContent(new HashMap<>(content)); }
ObjectBodyContent extends BodyContent<Map<String, Object>> { @Override public ObjectBodyContent copy() { return new ObjectBodyContent(new HashMap<>(content)); } }
ObjectBodyContent extends BodyContent<Map<String, Object>> { @Override public ObjectBodyContent copy() { return new ObjectBodyContent(new HashMap<>(content)); } private  ObjectBodyContent(Map<String, ?> content); }
ObjectBodyContent extends BodyContent<Map<String, Object>> { @Override public ObjectBodyContent copy() { return new ObjectBodyContent(new HashMap<>(content)); } private  ObjectBodyContent(Map<String, ?> content); @Override Map<String, Object> getContent(); @Override boolean matches(Body<?> other); @Override ObjectBodyContent copy(); @Override BodyContentType getType(); static ObjectBodyContent objectBody(Map<String, ?> content); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ObjectBodyContent extends BodyContent<Map<String, Object>> { @Override public ObjectBodyContent copy() { return new ObjectBodyContent(new HashMap<>(content)); } private  ObjectBodyContent(Map<String, ?> content); @Override Map<String, Object> getContent(); @Override boolean matches(Body<?> other); @Override ObjectBodyContent copy(); @Override BodyContentType getType(); static ObjectBodyContent objectBody(Map<String, ?> content); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }