### Question:
PrimitiveFieldImpl extends AbstractField { @Override public int getListSize() { throw new UnsupportedOperationException("Field represents a primitive data type; it has no list size."); } PrimitiveFieldImpl(final String fieldName, final DataType dataType); @Override long getDataLength(); @Override String getDeclaration(); @Override int getListSize(); @Override String getName(); @Override Structure getStructure(); @Override DataType getType();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testGetListSize() { field.getListSize(); }