### Question:
DexContractTable extends EntityDbTable<ExchangeContract> { public ExchangeContract getById(Long id) { return get(KEY_FACTORY.newKey(id)); } @Inject  DexContractTable(); @Override void save(Connection con, ExchangeContract entity); ExchangeContract getById(Long id); List<ExchangeContract> getAllByCounterOrder(Long counterOrderId); List<ExchangeContract> getByOrderIdAndHeight(long orderId, int height); ExchangeContract getLastByOrder(Long orderId); ExchangeContract getLastByCounterOrder(Long orderId); ExchangeContract getByOrderAndCounterOrder(Long orderId, Long counterOrderId); List<ExchangeContract> getOverdueContractsStep1and2(int deadlineToReply); List<ExchangeContract> getOverdueContractsStep1_2_3(int deadlineToReply);  }### Answer:
@Test void testInsert() { DbUtils.inTransaction(extension, (con) -> { table.insert(dtd.NEW_EXCHANGE_CONTRACT_16); }); ExchangeContract result = table.getById(dtd.NEW_EXCHANGE_CONTRACT_16.getId()); assertNotNull(result); assertEquals(dtd.NEW_EXCHANGE_CONTRACT_16.getId(), result.getId()); }