### Question:
CrnHelper { public static AltusKey generateAltusApiKey(String tenant, String user) { return new AltusKey(Base64.getEncoder().encodeToString(generateCrn(tenant, user).getBytes())); } private  CrnHelper(); static String extractCrnFromAuthHeader(String authHeader); static String generateCrn(String tenant, String user); static AltusKey generateAltusApiKey(String tenant, String user);  }### Answer:
@Test public void generateAltusApiKeyTest() { AltusKey k = CrnHelper.generateAltusApiKey("cloudera", "user"); Assert.assertEquals("Y3JuOmNkcDppYW06dXMtd2VzdC0xOmNsb3VkZXJhOnVzZXI6dXNlcg==", k.getAccessKeyId()); }