@Test
public void requiresEqualsAfterParameterName() {

    RuntimeException e = Assertions.assertThrows(
            RuntimeException.class, () -> MediaType.from("application/json; foo"));
    assertThat(e.getMessage(), containsString("Expected: '='"));
}