### Question:
BuiltinSequenceIdGenerator extends AbstractPreGenerateIdGenerator implements SequenceIdGenerator { @Override public void setQualifiedSequenceName(String qualifiedSequenceName) { this.qualifiedSequenceName = qualifiedSequenceName; }  @Override void setQualifiedSequenceName(String qualifiedSequenceName); @Override void initialize(); @Override GenerationType getGenerationType();  }### Answer:
@Test public void test() { MockConfig config = new MockConfig(); config.setDialect(new PostgresDialect()); MockResultSet resultSet = config.dataSource.connection.preparedStatement.resultSet; resultSet.rows.add(new RowData(11L)); BuiltinSequenceIdGenerator idGenerator = new BuiltinSequenceIdGenerator(); idGenerator.setQualifiedSequenceName("aaa"); idGenerator.setInitialValue(1); idGenerator.setAllocationSize(1); IdGenerationConfig idGenerationConfig = new IdGenerationConfig(config, _IdGeneratedEmp.getSingletonInternal()); Long value = idGenerator.generatePreInsert(idGenerationConfig); assertEquals(new Long(11), value); assertEquals("select nextval('aaa')", config.dataSource.connection.preparedStatement.sql); }