@Test
public void testGetStringAttributesExistsWithInvalidType() throws Exception {

	final Attributes attrs = new BasicAttributes();
	Attribute multi = new BasicAttribute("abc");
	multi.add(new Object());
	attrs.put(multi);
	class TestableDirContextAdapter extends DirContextAdapter {
		public TestableDirContextAdapter() {
			super(attrs, null);
		}
	}
	tested = new TestableDirContextAdapter();
	try {
		tested.getStringAttributes("abc");
		fail("ClassCastException expected");
	}
	catch (IllegalArgumentException expected) {
		assertThat(true).isTrue();
	}
}