@Test
public void nonStandardDust() {

    Transaction standardTx = new Transaction(PARAMS);
    standardTx.addInput(PARAMS.getGenesisBlock().getTransactions().get(0).getOutput(0));
    standardTx.addOutput(COIN, key1);
    assertEquals(RiskAnalysis.Result.OK, DefaultRiskAnalysis.FACTORY.create(wallet, standardTx, NO_DEPS).analyze());
    Transaction dustTx = new Transaction(PARAMS);
    dustTx.addInput(PARAMS.getGenesisBlock().getTransactions().get(0).getOutput(0));
    dustTx.addOutput(Coin.SATOSHI, key1); // 1 Satoshi
    assertEquals(RiskAnalysis.Result.NON_STANDARD, DefaultRiskAnalysis.FACTORY.create(wallet, dustTx, NO_DEPS).analyze());
    Transaction edgeCaseTx = new Transaction(PARAMS);
    edgeCaseTx.addInput(PARAMS.getGenesisBlock().getTransactions().get(0).getOutput(0));
    edgeCaseTx.addOutput(DefaultRiskAnalysis.MIN_ANALYSIS_NONDUST_OUTPUT, key1); // Dust threshold
    assertEquals(RiskAnalysis.Result.OK, DefaultRiskAnalysis.FACTORY.create(wallet, edgeCaseTx, NO_DEPS).analyze());
}