AtlasZookeeperSecurityProperties { public static AuthInfo parseAuth(String authString) { String[] authComponents = getComponents(authString, "authString", "scheme:authString"); return new AuthInfo(authComponents[0], authComponents[1].getBytes(Charsets.UTF_8)); }  static ACL parseAcl(String aclString, ACL defaultAcl); static ACL parseAcl(String aclString); static AuthInfo parseAuth(String authString);  }
@Test public void shouldGetAuth() { AuthInfo authInfo = AtlasZookeeperSecurityProperties.parseAuth("digest:user:password"); assertEquals(authInfo.getScheme(), "digest"); assertEquals(authInfo.getAuth(), "user:password".getBytes(Charsets.UTF_8)); }