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