@Test
public void testRebind() throws Exception {

	expectGetReadWriteContext();
	Object expectedObject = new Object();
	BasicAttributes expectedAttributes = new BasicAttributes();
	tested.rebind(nameMock, expectedObject, expectedAttributes);
       verify(dirContextMock).rebind(nameMock, expectedObject, expectedAttributes);
       verify(dirContextMock).close();
}