@Test
public void testUnbind_NamingException() throws Exception {

	expectGetReadWriteContext();
       javax.naming.NameNotFoundException ne = new javax.naming.NameNotFoundException();
       doThrow(ne).when(dirContextMock).unbind(nameMock);
	try {
		tested.unbind(nameMock);
		fail("NameNotFoundException expected");
	}
	catch (NameNotFoundException expected) {
		assertThat(true).isTrue();
	}
       verify(dirContextMock).close();
}