@Test
    public void create() {
        try {
            new NumericDataType("foo", 0, IntegerFieldValue.class, IntegerFieldValue.getFactory()).createFieldValue(new Object());
            fail();
        } catch (IllegalArgumentException e) {
            assertEquals("Class class java.lang.Object not applicable to an class " +
                         "com.yahoo.document.datatypes.IntegerFieldValue instance.", e.getMessage());
        }
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
@since 5.1.10
document/src/test/java/com/yahoo/document/NumericDataTypeTestCase.java