### Question:
Field { @Override public String toString() { return field; } Field(String attribute, AttributeConverter convert);  Field(String attribute); @Override String toString();  }### Answer:
@Test public void testFieldConvertion() { Mockito.doReturn("converted").when(converter).convert("attribute"); Field field = new Field("attribute", converter); String s = field.toString(); Assert.assertEquals("converted", s); }