@Test
public void testModifyAttributes_NamingException() throws Exception {

	expectGetReadWriteContext();
	ModificationItem[] mods = new ModificationItem[0];
       javax.naming.LimitExceededException ne = new javax.naming.LimitExceededException();
       doThrow(ne).when(dirContextMock).modifyAttributes(nameMock, mods);
	try {
		tested.modifyAttributes(nameMock, mods);
		fail("LimitExceededException expected");
	}
	catch (LimitExceededException expected) {
		assertThat(true).isTrue();
	}
       verify(dirContextMock).close();
}