@Test
public void derOf_convertsObjectToDerEncodedString() throws IOException {

  final String pemString = CertificateFormatter.derOf((RSAPublicKey) keyPair.getPublic());
  assertThat(pemString, startsWith("ssh-rsa "));
}