@Test
public void requiresSubtype() {

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