okay, I think it is better to create such method 

    public final void retrievesKeys() throws Exception {
        final PublicKeys keys = this.keys();
        final PublicKey key = keys.create("key", "ssh 1AA");
        MatcherAssert.assertThat(
            keys.iterate(),
            Matchers.hasItem(key)
        );
    }

instead