### Question:
MediaTypeContainer { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MediaTypeContainer that = (MediaTypeContainer) o; if (!contentType.equalsIgnoreCase(that.contentType)) return false; return Objects.equals(charset, that.charset); } private  MediaTypeContainer(String contentType, String charset); static MediaTypeContainer create(String rawContentType); boolean match(MediaTypeContainer mediaTypeContainer); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { MediaTypeContainer definition = MediaTypeContainer.create("text/plain; charset=UTF-8"); assertEquals(definition, definition); MediaTypeContainer value = MediaTypeContainer.create("text/plain; charset=UTF-8"); assertEquals(definition, value); value = MediaTypeContainer.create("text/plain; charset=UTF-16"); assertNotEquals(definition, value); value = MediaTypeContainer.create("application/json; charset=UTF-8"); assertNotEquals(definition, value); assertNotEquals(definition, null); assertNotEquals(definition, new Object()); }