*
* @throws Exception if a problem occurs.
*/
@Test
public void canRemoveKey() throws Exception {
final PublicKeys keys = new MkGithub().users().self().keys();
final PublicKey key = keys.create("rsa", "rsa sh");
MatcherAssert.assertThat(
keys.iterate(),
Matchers.hasItem(key)
);
keys.remove(key.number());
MatcherAssert.assertThat(
keys.iterate(),
Matchers.not(Matchers.hasItem(key))
);
}