Bootstrap { public Bootstrap(DSLContext create) throws SQLException { records = new RecordsFactory() { @Override public DSLContext create() { return create; } @Override public UUID currentPrincipalId() { return WellKnownAgency.CORE.id(); } }; this.create = create; } Bootstrap(DSLContext create); static void boostrap(String outputFile,
                                Bootstrap bootstrap); void bootstrap();  }
@Test public void testBootstrap() throws Exception { Bootstrap.boostrap("target/bootstrap-out.json", new Bootstrap(create){ @Override protected void serialize(String fileName) throws IOException { }}); create.configuration() .connectionProvider() .acquire() .rollback(); }