SSHCertificate { public SSHCertificate setCertificate(String certificate) { this.certificate = certificate; return this; }  SSHCertificate setCertificate(String certificate); String getCertificate(); SSHCertificate setPublicKey(String publicKey); String getPublicKey(); SSHCertificate setPrivateKey(String privateKey); String getPrivateKey(); @Override boolean equals(Object another); public String certificate; @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String publicKey; @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String privateKey; }
@Test public void testSSHCertificates() { SSHCertificates certs1 = new SSHCertificates(); SSHCertificates certs2 = new SSHCertificates(); assertEquals(certs1, certs2); assertEquals(certs1, certs1); SSHCertificate cert = new SSHCertificate(); cert.setCertificate("cert"); certs1.setCertificates(Collections.singletonList(cert)); assertEquals(Collections.singletonList(cert), certs1.getCertificates()); assertNotEquals(certs1, certs2); certs2.setCertificates(Collections.singletonList(cert)); assertEquals(certs1, certs2); certs2.setCertificateSigner("signer"); assertNotEquals(certs1, certs2); assertEquals("signer", certs2.getCertificateSigner()); certs1.setCertificateSigner("signer2"); assertNotEquals(certs1, certs2); certs1.setCertificateSigner("signer"); assertEquals(certs1, certs2); assertNotEquals(certs2, null); assertNotEquals("certs", certs1); }