@Test
public void getInstanceTest() throws ValidationException {

    Configuration config = Configuration.newConfiguration();
    DatatypeFactory factory = DatatypeFactory.getInstance(config);
    assertNotNull("Datatype factory instance is null", factory);
    DatatypeFactory factory2 = DatatypeFactory.getInstance(config);
    assertNotEquals("two instances return are equals", factory, factory2);
}