@Test
public void initialTransactionTest() {

    FunctionTestHarness harness = FunctionTestHarness.test(ignore -> new TransactionManager(), MANAGER_FN, "id");
    Assert.assertThat(
        harness.invoke(TRANSACTION),
        sent(
                messagesTo(new Address(FRAUD_FN, ACCOUNT), equalTo(QueryFraud.getDefaultInstance())),
                messagesTo(new Address(MERCHANT_FN, MERCHANT), equalTo(QueryMerchantScore.getDefaultInstance()))));
}