@Test
public void testFromStringWithParams() throws Exception {
final String header = "application/xml;charset=utf8";
final MediaTypeProvider instance = new MediaTypeProvider();
final MediaType result = instance.fromString(header);
assertEquals(result.getType(), "application");
assertEquals(result.getSubtype(), "xml");
assertEquals(result.getParameters().size(), 1);
assertTrue(result.getParameters().containsKey("charset"));
assertEquals(result.getParameters().get("charset"), "utf8");