@Test
public void getKeys() throws Exception {

    chain.getKey(KeyChain.KeyPurpose.RECEIVE_FUNDS);
    chain.getKey(KeyChain.KeyPurpose.CHANGE);
    chain.maybeLookAhead();
    assertEquals(2, chain.getKeys(false).size());
}