@Test
public void successTest() throws Exception {
ActorRef bank = _system.actorOf(new Props(BankActor.class));
bank.tell(new TransferMsg(Float.valueOf("1777")));
AccountBalance balance = (AccountBalance) Await.result(
ask(bank, new AccountBalance("XYZ"), 5000),
Duration.create("5 second"));
Assert.assertEquals(Float.parseFloat("3223"), balance.getBalance(),
Float.parseFloat("0"));
balance = (AccountBalance) Await.result(
ask(bank, new AccountBalance("ABC"), 5000),
Duration.create("5 second"));
Assert.assertEquals(Float.parseFloat("2777"), balance.getBalance(),
Float.parseFloat("0"));
}