public boolean match(MediaType other) {
      if (other == this)
         return true;

      return other != null && (other.matchesAll() || this.matchesAll() || other.typeSubtype.equals(this.typeSubtype));
   }
@Test
   public void testMediaTypeUnMatch() {
      MediaType one = MediaType.APPLICATION_JSON;
      MediaType two = MediaType.APPLICATION_JAVASCRIPT;

      assertFalse(one.match(two));
      assertFalse(two.match(one));
   }