### Question:
FieldType { @Override public int hashCode() { int result = modifier != null ? modifier.hashCode() : 0; result = 31 * result + (type != null ? type.hashCode() : 0); return result; } FieldType(String modifier, String type); String getType(); String getModifier(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testHasCode() { FieldType ft1 = new FieldType("optional", "string"); assertEquals(953450673, ft1.hashCode()); }