@Test(expected = MediaTypeNotSupportedException.class) public void canNotGetInputFormatBasedOnWildcardMediaType() throws Exception { InputFormat format = repository.inputFormat(MediaType.WILDCARD_TYPE); format.readValue("foo"); fail("Got InputFormat based on wild card type: " + format); }