X509CertSignObject { public X509CertSignObject() { } X509CertSignObject(); String getPem(); void setPem(String pem); List<Integer> getX509ExtKeyUsage(); void setX509ExtKeyUsage(List<Integer> x509ExtKeyUsage); void setExpiryTime(Integer expiryTime); Integer getExpiryTime(); @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public Integer expiryTime; @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List<Integer> x509ExtKeyUsage; }
@Test public void testX509CertSignObject() { X509CertSignObject cert = new X509CertSignObject(); assertNull(cert.getPem()); cert.setPem("pem-value"); assertEquals(cert.getPem(), "pem-value"); cert.setExpiryTime(30); assertEquals(cert.getExpiryTime().intValue(), 30); List<Integer> extKeyUsage = new ArrayList<>(); extKeyUsage.add(1); extKeyUsage.add(2); cert.setX509ExtKeyUsage(extKeyUsage); assertEquals(cert.getX509ExtKeyUsage(), extKeyUsage); }