@Test
public void testAuthPlainPasswordProperty() throws Exception {

  Configuration conf = new Configuration();
  conf.set(CommonConfigurationKeys.ZK_AUTH, ZK_AUTH_VALUE);
  List<ZKAuthInfo> zkAuths = SecurityUtil.getZKAuthInfos(conf,
      CommonConfigurationKeys.ZK_AUTH);
  assertEquals(1, zkAuths.size());
  ZKAuthInfo zkAuthInfo = zkAuths.get(0);
  assertEquals("a_scheme", zkAuthInfo.getScheme());
  assertArrayEquals("a_password".getBytes(), zkAuthInfo.getAuth());
}