### Question:
X509Cert implements Serializable { public List<KeyUsage> getKeyUsages() { List<KeyUsage> keyUsages = new ArrayList<>(); boolean[] keyUsagesBits = originalCert.getKeyUsage(); for (int i = 0; i < keyUsagesBits.length; i++) { if (keyUsagesBits[i]) { keyUsages.add(KeyUsage.values()[i]); } } logger.debug("Returning " + keyUsages.size() + "key usages:"); for (KeyUsage keyUsage : keyUsages) { logger.debug("\t" + keyUsage.toString()); } return keyUsages; } X509Cert(X509Certificate cert);   X509Cert(String path); List<String> getCertificatePolicies(); X509Certificate getX509Certificate(); String issuerName(Issuer part); String issuerName(); boolean isValid(Date date); boolean isValid(); List<KeyUsage> getKeyUsages(); String getSerial(); String getSubjectName(SubjectName part); String getSubjectName();  }### Answer:
@Test public void testKeyUsage() { Assert.assertEquals(Arrays.asList(X509Cert.KeyUsage.NON_REPUDIATION), this.certificate.getKeyUsages()); }