@Test
public void testGetStringAttributeWhenAttributeExists() throws Exception {

	final Attributes attrs = new BasicAttributes();
	attrs.put(new BasicAttribute("abc", "def"));
	class TestableDirContextAdapter extends DirContextAdapter {
		public TestableDirContextAdapter() {
			super(attrs, null);
		}
	}
	tested = new TestableDirContextAdapter();
	String s = tested.getStringAttribute("abc");
	assertThat(s).isEqualTo("def");
}