LdapRdn implements Serializable, Comparable { public String getValue() { return getComponent().getValue(); } LdapRdn();  LdapRdn(String string);  LdapRdn(String key, String value); void addComponent(LdapRdnComponent rdnComponent); List getComponents(); LdapRdnComponent getComponent(); LdapRdnComponent getComponent(int idx); String getLdapEncoded(); String encodeUrl(); int compareTo(Object obj); boolean equals(Object obj); int hashCode(); String toString(); String getValue(); String getKey(); String getValue(String key); LdapRdn immutableLdapRdn();  }
@Test(expected = IllegalArgumentException.class) public void testGetValueNoKeyWithCorrectValue() { LdapRdn tested = new LdapRdn("cn=john doe"); tested.getValue("sn"); }
@Test(expected = IllegalArgumentException.class) public void testGetValueNoComponents() { LdapRdn tested = new LdapRdn(); tested.getValue("sn"); }