@Test
public void currentP2SHAddress() throws Exception {

    group = createMarriedKeyChainGroup();
    Address a1 = group.currentAddress(KeyChain.KeyPurpose.RECEIVE_FUNDS);
    assertTrue(a1.isP2SHAddress());
    Address a2 = group.currentAddress(KeyChain.KeyPurpose.RECEIVE_FUNDS);
    assertEquals(a1, a2);
    Address a3 = group.currentAddress(KeyChain.KeyPurpose.CHANGE);
    assertNotEquals(a2, a3);
}