TextDeSerializer implements SerDeserializer { @Override public final EnhancedMimeType getMimeType() { return mimeType; } TextDeSerializer();  TextDeSerializer(final Charset encoding); @Override final EnhancedMimeType getMimeType(); @Override final byte[] marshal(final Object obj, final SerializedDataType type); @SuppressWarnings("unchecked") @Override final T unmarshal(final Object data, final SerializedDataType type, final EnhancedMimeType mimeType);  }
@Test public void testGetMimeType() { assertThat(testee.getMimeType()).isEqualTo(EnhancedMimeType.create("text", "plain", CHARSET)); assertThat(new TextDeSerializer().getMimeType()).isEqualTo(EnhancedMimeType.create("text", "plain", Charset.forName("utf-8"))); }