### Question:
DataTypeActiveRecord extends ActiveRecord<DataType> { public List<DataType> create(final DataType reference, final CreationType creationType) { return getDataTypeRecordEngine().create(getRecord(), reference, creationType); } DataTypeActiveRecord(final RecordEngine<DataType> recordEngine); List<DataType> create(final DataType reference,
                                 final CreationType creationType); List<DataType> destroyWithoutDependentTypes();  }### Answer:
@Test public void testCreate() { final DataTypeRecordEngine engine = makeRecordEngine(); final DataType record = spy(new DataType(engine)); final DataType reference = mock(DataType.class); final List<DataType> expectedDataTypes = asList(mock(DataType.class), mock(DataType.class)); final CreationType creationType = mock(CreationType.class); doReturn(expectedDataTypes).when(engine).create(record, reference, creationType); final List<DataType> actualDataTypes = record.create(reference, creationType); assertEquals(expectedDataTypes, actualDataTypes); }