@Test
public void testRemoveItemMetadata() {

    ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);
    registry.removeItemMetadata("itemName");
    verify(managedProvider).removeItemMetadata(captor.capture());
    assertEquals("itemName", captor.getValue());
}