### Question:
MediaTypeContainer { public boolean match(MediaTypeContainer mediaTypeContainer) { if (this == mediaTypeContainer) return true; if (contentType.equalsIgnoreCase(mediaTypeContainer.contentType)) { if (contentType.startsWith(TEXT_TYPE)) { return charset == null || charset.equalsIgnoreCase(mediaTypeContainer.charset); } else { return true; } } if (hasPlaceholder) { String definitionType = contentType.substring(0, contentType.indexOf('/')); final int endIndex = mediaTypeContainer.contentType.indexOf('/'); if (endIndex != -1) { String valueType = mediaTypeContainer.contentType.substring(0, endIndex); return definitionType.equalsIgnoreCase(valueType); } } return false; } 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 match() { MediaTypeContainer definition = MediaTypeContainer.create("text/plain; charset=UTF-8"); MediaTypeContainer value = MediaTypeContainer.create("text/PLAIN; charset=utf-8"); assertTrue(definition.match(definition)); assertTrue(definition.match(value)); }