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