### Question:
ImmutableMediaType implements MediaType { @Override public boolean isWildcard() { return MediaTypes.WILDCARD_TYPE.equals(this.type) || MediaTypes.WILDCARD_TYPE.equals(this.subtype); } ImmutableMediaType(final MediaRangeSyntax syntax, final String type, final String subtype, String suffix, final Map<String, String> parameters); @Override String type(); @Override String subType(); @Override Charset charset(); @Override String suffix(); @Override Map<String,String> parameters(); @Override boolean isWildcard(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(final Object other); @Override String toString();  }### Answer:
@Test public void typeWilcardIsWildcard() { ImmutableMediaType sut = new ImmutableMediaType(MediaRangeSyntax.RFC6838,"*","*",null,null); assertThat(sut.isWildcard(),equalTo(true)); }
@Test public void unstructuredSubtypeWilcardIsWildcard() { ImmutableMediaType sut = new ImmutableMediaType(MediaRangeSyntax.RFC6838,"application","*",null,null); assertThat(sut.isWildcard(),equalTo(true)); }
@Test public void structuredSubtypeWilcardIsWildcard() { ImmutableMediaType sut = new ImmutableMediaType(MediaRangeSyntax.RFC6838,"application","*","xml",null); assertThat(sut.isWildcard(),equalTo(true)); }
@Test public void regularMediaTypesAreNotWildcard() { ImmutableMediaType sut = new ImmutableMediaType(MediaRangeSyntax.RFC6838,"application","rdf","xml",null); assertThat(sut.isWildcard(),equalTo(false)); }