### Question:
CharsetPreference implements Comparable<CharsetPreference> { public static CharsetPreference wildcard() { return new CharsetPreference("*",MAX_WEIGHT); } CharsetPreference(final String charset, final int weight); String charset(); double weight(); boolean isWildcard(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); @Override int compareTo(final CharsetPreference o); static CharsetPreference valueOf(final String str); static CharsetPreference wildcard(); static CharsetPreference wildcard(final double weight); static CharsetPreference create(final Charset charset); static CharsetPreference create(final Charset charset, final double weight);  }### Answer:
@Test public void testEquals$differentType() { CharsetPreference one=CharsetPreference.wildcard(); assertThat((Object)one,not(equalTo((Object)"string"))); }
@Test public void testEquals$differentWeight() { CharsetPreference one=CharsetPreference.wildcard(); CharsetPreference other=CharsetPreference.wildcard(0.00D); assertThat(one,not(equalTo(other))); }