### Question:
PhasingPollTable extends EntityDbTable<PhasingPoll> { public PhasingPoll get(long id) { return get(KEY_FACTORY.newKey(id)); } @Inject  PhasingPollTable(Blockchain blockchain); @Override PhasingPoll load(Connection con, ResultSet rs, DbKey dbKey); PhasingPoll get(long id); @Override void save(Connection con, PhasingPoll poll); List<Transaction> getFinishingTransactions(int height); List<Transaction> getFinishingTransactionsByTime(int startTime, int finishTime); long getSenderPhasedTransactionFees(long accountId, int height); DbIterator<Transaction> getHoldingPhasedTransactions(long holdingId, VoteWeighting.VotingModel votingModel,
                                                                long accountId, boolean withoutWhitelist, int from, int to, int height); DbIterator<Transaction> getAccountPhasedTransactions(long accountId, int from, int to, int height); int getAccountPhasedTransactionCount(long accountId, int height); int getAllPhasedTransactionsCount(); List<TransactionDbInfo> getActivePhasedTransactionDbIds(int height); boolean isTransactionPhased(long id); @Override void trim(int height);  }### Answer:
@Test void testGetById() { PhasingPoll phasingPoll = table.get(ptd.POLL_2.getId()); assertEquals(ptd.POLL_2, phasingPoll); }
@Test void testGetByIdNotExist() { PhasingPoll phasingPoll = table.get(1); assertNull(phasingPoll); }