### Question:
SequenceDescFactoryImpl implements SequenceDescFactory { public SequenceDesc getSequenceDesc(EntityMeta entityMeta, PropertyMeta propertyMeta) { GenerationType generationType = propertyMeta.getGenerationType(); if (generationType == GenerationType.AUTO) { generationType = dialect.getDefaultGenerationType(); } if (generationType == GenerationType.SEQUENCE) { if (!dialect.supportsSequence()) { throw new UnsupportedGenerationTypeRuntimeException( GenerationType.SEQUENCE, entityMeta.getName(), propertyMeta.getName()); } SequenceGenerator generator = getSequenceGenerator(entityMeta, propertyMeta); SequenceDesc sequenceDesc = new SequenceDesc(); String sequenceName = getSequenceName(entityMeta, propertyMeta, generator); sequenceDesc.setSequenceName(sequenceName); sequenceDesc.setInitialValue(generator.initialValue()); sequenceDesc.setAllocationSize(generator.allocationSize()); sequenceDesc.setDataType(getDataType(propertyMeta)); return sequenceDesc; } return null; } SequenceDescFactoryImpl(GenDialect dialect,
            ValueTypeProvider valueTypeProvider); SequenceDesc getSequenceDesc(EntityMeta entityMeta,
            PropertyMeta propertyMeta);  }### Answer:
@Test public void testGetSequenceDesc_assignId() throws Exception { Field field = getClass().getDeclaredField("assignId"); EntityMeta entityMeta = new EntityMeta(); PropertyMeta propertyMeta = propertyMetaFactory.createPropertyMeta( field, entityMeta); SequenceDesc sequenceDesc = sequenceDescFactoryImpl.getSequenceDesc( entityMeta, propertyMeta); assertNull(sequenceDesc); }
@Test public void testGetSequenceDesc_nonId() throws Exception { Field field = getClass().getDeclaredField("nonId"); EntityMeta entityMeta = new EntityMeta(); PropertyMeta propertyMeta = propertyMetaFactory.createPropertyMeta( field, entityMeta); SequenceDesc sequenceDesc = sequenceDescFactoryImpl.getSequenceDesc( entityMeta, propertyMeta); assertNull(sequenceDesc); }