### Question:
Content { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Content)) { return false; } return Objects.equals(getType(), ((Content) obj).getType()) && Arrays.equals(getBody(), ((Content) obj).getBody()); } private  Content();  Content(byte[] body);  Content(String type, byte[] body); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String getType(); byte[] getBody(); static final Content EMPTY_CONTENT; }### Answer:
@Test public void testEquals() { Content contentA = new Content("application/json", "Hallo Welt".getBytes()); Content contentB = new Content("application/json", "Hallo Welt".getBytes()); assertEquals(contentA, contentB); }