OidRepository { public static String getDescription(String oid) { return repository.get(oid); } private  OidRepository(); static String getDescription(String oid);  }
@Test public void test() { assertEquals(CertificatePolicy.QCP_LEGAL.getDescription(), OidRepository.getDescription(CertificatePolicy.QCP_LEGAL.getOid())); assertEquals(QCStatement.QC_COMPLIANCE.getDescription(), OidRepository.getDescription(QCStatement.QC_COMPLIANCE.getOid())); assertNull(OidRepository.getDescription("1.2.3")); }