### Question:
MimeTypeParser { @Nullable public static MimeType safeParseMimeType (@Nullable final String sMimeType) { return safeParseMimeType (sMimeType, CMimeType.DEFAULT_QUOTING); } private  MimeTypeParser(); @Nonnull @ReturnsMutableCopy static char [] getAllTSpecialChars(); static boolean isTSpecialChar(final char c); static boolean isTokenChar(final char c); static boolean isToken(@Nullable final String sToken); @Nullable static MimeType parseMimeType(@Nullable final String sMimeType); @Nullable static MimeType parseMimeType(@Nullable final String sMimeType, @Nonnull final EMimeQuoting eQuotingAlgorithm); @Nullable static MimeType safeParseMimeType(@Nullable final String sMimeType); @Nullable static MimeType safeParseMimeType(@Nullable final String sMimeType, @Nonnull final EMimeQuoting eQuotingAlgorithm);  }### Answer:
@Test public void testSafeParseMimeType () { IMimeType mt; mt = MimeTypeParser.safeParseMimeType ("\"application/soap+xml; action=\\\"\\\";charset=utf-8\""); assertNotNull (mt); assertSame (EMimeContentType.APPLICATION, mt.getContentType ()); assertEquals ("soap+xml", mt.getContentSubType ()); assertEquals ("application/soap+xml;action=\"\";charset=utf-8", mt.getAsString ()); mt = MimeTypeParser.safeParseMimeType ("\"multipart/related; boundary=\\\"----=_Part_90_1525910090.1594769036819\\\"; type=\\\"application/soap+xml\\\"; charset=UTF-8\""); assertNotNull (mt); assertSame (EMimeContentType.MULTIPART, mt.getContentType ()); assertEquals ("related", mt.getContentSubType ()); assertEquals ("multipart/related;boundary=\"----=_Part_90_1525910090.1594769036819\";type=\"application/soap+xml\";charset=UTF-8", mt.getAsString ()); }