@@ -0,0 +1,1215 @@
+package org.jkiss.utils;%0A%0Aimport org.jkiss.utils.MimeType;%0Aimport org.junit.Assert;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Apublic class MimeTypeTest %7B%0A%0A  @Rule public final ExpectedException thrown = ExpectedException.none();%0A  @Test%0A  public void testParse() %7B%0A    Assert.assertEquals(%22application/*%22, new MimeType(%22application%22).toString());%0A    Assert.assertEquals(%22/*%22, new MimeType(%22;application%22).toString());%0A    Assert.assertEquals(%22application/json%22, new MimeType(%22application/json%22).toString());%0A    Assert.assertEquals(%22application/js%22, new MimeType(%22application/js;on%22).toString());%0A%0A    thrown.expect(IllegalArgumentException.class);%0A    new MimeType(%22application;/json%22);%0A  %7D%0A%0A  @Test%0A  public void testMatch() %7B%0A    Assert.assertTrue(new MimeType().match(new MimeType()));%0A    Assert.assertFalse(new MimeType().match(new MimeType(%22text%22, %22json%22)));%0A    Assert.assertTrue(new MimeType(%22application%22, %22json%22).match(new MimeType(%22application%22, %22*%22)));%0A    Assert.assertFalse(new MimeType(%22application%22, %22json%22).match(new MimeType(%22application%22, %22text%22)));%0A    %0A    Assert.assertTrue(new MimeType(%22application%22, %22json%22).match(%22application/json%22));%0A  %7D%0A%7D%0A

Add unit tests for utils.MimeType These tests were written using Diffblue Cover.