@Test
public void testRemoveBinding() {

	context.clear();
	String prefix1 = "prefix1";
	String prefix2 = "prefix2";
	String namespaceUri = "namespaceUri";
	context.bindNamespaceUri(prefix1, namespaceUri);
	context.bindNamespaceUri(prefix2, namespaceUri);
	Iterator<String> iter = context.getPrefixes(namespaceUri);
	Assert.assertTrue("iterator is empty", iter.hasNext());
	Assert.assertEquals(prefix1, iter.next());
	Assert.assertTrue("iterator is empty", iter.hasNext());
	Assert.assertEquals(prefix2, iter.next());
	Assert.assertFalse("iterator not empty", iter.hasNext());
	context.removeBinding(prefix1);
	iter = context.getPrefixes(namespaceUri);
	Assert.assertTrue("iterator is empty", iter.hasNext());
	Assert.assertEquals(prefix2, iter.next());
	Assert.assertFalse("iterator not empty", iter.hasNext());
	context.removeBinding(prefix2);
	iter = context.getPrefixes(namespaceUri);
	Assert.assertFalse("iterator not empty", iter.hasNext());
}