### Question:
SolidityNode { private void getBlock() { long blockNum = ID.incrementAndGet(); while (flag) { try { if (blockNum > remoteBlockNum.get()) { sleep(BLOCK_PRODUCED_INTERVAL); remoteBlockNum.set(getLastSolidityBlockNum()); continue; } Block block = getBlockByNum(blockNum); blockQueue.put(block); blockNum = ID.incrementAndGet(); } catch (Exception e) { logger.error("Failed to get block {}, reason: {}.", blockNum, e.getMessage()); sleep(exceptionSleepTime); } } } SolidityNode(Manager dbManager); static void main(String[] args); void sleep(long time);  }### Answer:
@Test public void testSolidityGrpcCall() { DatabaseGrpcClient databaseGrpcClient = null; String addr = Args.getInstance().getTrustNodeAddr(); try { databaseGrpcClient = new DatabaseGrpcClient(addr); } catch (Exception e) { logger.error("Failed to create database grpc client {}", addr); } Assert.assertNotNull(databaseGrpcClient); DynamicProperties dynamicProperties = databaseGrpcClient.getDynamicProperties(); Assert.assertNotNull(dynamicProperties); Block genesisBlock = databaseGrpcClient.getBlock(0); Assert.assertNotNull(genesisBlock); Assert.assertFalse(genesisBlock.getTransactionsList().isEmpty()); }
@Test public void testSolidityGrpcCall() { DatabaseGrpcClient databaseGrpcClient = null; String addr = Args.getInstance().getTrustNodeAddr(); try { databaseGrpcClient = new DatabaseGrpcClient(addr); } catch (Exception e) { logger.error("Failed to create database grpc client {}", addr); } Assert.assertNotNull(databaseGrpcClient); DynamicProperties dynamicProperties = databaseGrpcClient.getDynamicProperties(); Assert.assertNotNull(dynamicProperties); Block genisisBlock = databaseGrpcClient.getBlock(0); Assert.assertNotNull(genisisBlock); Assert.assertFalse(genisisBlock.getTransactionsList().isEmpty()); }