@Test
   public void testRebindWithContext() throws Exception {

	expectGetReadWriteContext();
	when(dirContextOperationsMock.getDn()).thenReturn(nameMock);
	when(dirContextOperationsMock.isUpdateMode()).thenReturn(false);
	tested.rebind(dirContextOperationsMock);
       verify(dirContextMock).rebind(nameMock, dirContextOperationsMock, null);
       verify(dirContextMock).close();
}