### Question:
StructureImpl implements Structure { @Override public DataType getType(final String fieldName) { return getField(fieldName).getType(); } StructureImpl(final Map<String, Field> fields); @Override Field getField(final String fieldName); @Override List<Field> getFields(); @Override DataType getType(final String fieldName); @Override boolean hasMember(final String fieldName);  }### Answer:
@Test public void testGetType() { assertThat(structure.getType(FIELD_NAME)).isEqualTo(FIELD.getType()); }
@Test(expected = IllegalArgumentException.class) public void testGetTypeNoSuchField() { assertThat(structure.getType("NO SUCH FIELD")); }