### Question:
GenesisTxParser { public static boolean isGenesis(RawTx rawTx, String genesisTxId, int genesisBlockHeight) { return rawTx.getBlockHeight() == genesisBlockHeight && rawTx.getId().equals(genesisTxId); }  static boolean isGenesis(RawTx rawTx, String genesisTxId, int genesisBlockHeight); static Tx getGenesisTx(RawTx rawTx, Coin genesisTotalSupply, DaoStateService daoStateService);  }### Answer:
@Test public void testIsGenesis() { int blockHeight = 200; String blockHash = "abc123"; Coin genesisTotalSupply = Coin.parseCoin("2.5"); long time = new Date().getTime(); final List<TxInput> inputs = Arrays.asList( new TxInput("tx0", 0, null), new TxInput("tx1", 1, null) ); RawTxOutput output = new RawTxOutput( 0, genesisTotalSupply.value, null, null, null, null, blockHeight ); RawTx rawTx = new RawTx( "tx2", blockHeight, blockHash, time, ImmutableList.copyOf(inputs), ImmutableList.copyOf(Arrays.asList(output)) ); String genesisTxId = "genesisTxId"; int genesisBlockHeight = 150; boolean result = GenesisTxParser.isGenesis(rawTx, genesisTxId, genesisBlockHeight); boolean want = false; Assert.assertEquals(want, result); blockHeight = 150; rawTx = new RawTx( "tx2", blockHeight, blockHash, time, ImmutableList.copyOf(inputs), ImmutableList.copyOf(Arrays.asList(output)) ); result = GenesisTxParser.isGenesis(rawTx, genesisTxId, genesisBlockHeight); want = false; Assert.assertEquals(want, result); }