@ProtoFactory
   public static MediaType fromString(String tree) {
      if (tree == null || tree.isEmpty()) throw CONTAINER.missingMediaType();

      Matcher matcher = TREE_PATTERN.matcher(tree);
      return parseSingleMediaType(tree, matcher, false);
   }
@Test
   public void testParsingNoType() {
      Exceptions.expectException(EncodingException.class, () -> MediaType.fromString(""));

      Exceptions.expectException(EncodingException.class, () -> MediaType.fromString(";param=value"));
   }