@Test public void compareOfWrongValueFails() { assertFalse(template.compare("uid=bob,ou=people", "uid", "wrongvalue")); }
@Test public void compareOfCorrectByteValueSucceeds() { assertTrue(template.compare("uid=bob,ou=people", "userPassword", Utf8.encode("bobspassword"))); }
@Test public void compareOfWrongByteValueFails() { assertFalse(template.compare("uid=bob,ou=people", "userPassword", Utf8.encode("wrongvalue"))); }
@Test public void compareOfCorrectValueSucceeds() { assertTrue(template.compare("uid=bob,ou=people", "uid", "bob")); }