### Question:
AddressesTopicsFilter { boolean matchesContractAddress(UscAddress toAddr) { for (UscAddress address : addresses) { if (address.equals(toAddr)) { return true; } } return addresses.length == 0; } AddressesTopicsFilter(UscAddress[] addresses, Topic[] topics); boolean matchBloom(Bloom blockBloom); boolean matchesExactly(LogInfo logInfo);  }### Answer:
@Test public void matchAddress() { Account account = new AccountBuilder().name("account").build(); UscAddress address = account.getAddress(); AddressesTopicsFilter filter = new AddressesTopicsFilter(new UscAddress[] { address }, null); Assert.assertTrue(filter.matchesContractAddress(address)); Assert.assertFalse(filter.matchesContractAddress(UscAddress.nullAddress())); }