### Question:
TxBuilder { public void createNewTx(BigInteger txNonce) throws InterruptedException { Transaction tx = this.createNewTransaction(BigInteger.valueOf(1), BigInteger.valueOf(21000), txNonce); ethereum.submitTransaction(tx); logger.info("Added pending tx={}", tx.getHash()); try { SecureRandom random = new SecureRandom(); Thread.sleep(random.nextInt(51000)); } catch (InterruptedException e) { throw e; } } TxBuilder(UscSystemProperties config, Ethereum ethereum, BlockProcessor blockProcessor, Repository repository); void simulateTxs( ); void createNewTx(BigInteger txNonce); Transaction createNewTransaction(BigInteger gasPrice, BigInteger gasLimit, BigInteger txNonce); void stop();  }### Answer:
@Test public void createAndBroadcastTransaction() { SimpleEthereum usc = new SimpleEthereum(); BlockProcessor blockProcessor = Mockito.mock(BlockProcessor.class); TxBuilder builder = new TxBuilder(config, usc, blockProcessor, (Repository) usc.repository); BigInteger nonce = BigInteger.TEN; try { builder.createNewTx(nonce); } catch (InterruptedException ex){ Assert.fail(); } }