@Test public void testToString() { final String toString = new Mammoth().toString(); assertNotNull(toString); assertEquals("The mammoth", toString); }
@Override public String toString() { return "The mammoth"; }
Mammoth { @Override public String toString() { return "The mammoth"; } }
Mammoth { @Override public String toString() { return "The mammoth"; } Mammoth(); }
Mammoth { @Override public String toString() { return "The mammoth"; } Mammoth(); void timePasses(); @Override String toString(); void observe(); }
Mammoth { @Override public String toString() { return "The mammoth"; } Mammoth(); void timePasses(); @Override String toString(); void observe();  }