### Question:
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("charset",name()). toString(); } ImmutableCharacterEncoding(Charset charset); @Override boolean isWildcard(); @Override String name(); @Override Charset charset(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void wildcardCharacterEncodingHasCustomToString() throws Exception { ImmutableCharacterEncoding sut = wildcard(); assertThat(sut.toString(),equalTo("ImmutableCharacterEncoding{charset=*}")); }
@Test public void regularCharacterEncodingHasCustomToString() throws Exception { ImmutableCharacterEncoding sut = regular(); assertThat(sut.toString(),equalTo("ImmutableCharacterEncoding{charset=UTF-8}")); }