@Test
public void testGetObjectFromNameClassPairImplementingHasControls() throws NamingException {

    Object expectedObject = "object";
    Object expectedResult = "result";
    MyBindingThatHasControls expectedBinding = new MyBindingThatHasControls("some name", expectedObject);
    when(mapperMock.mapFromContextWithControls(expectedObject, expectedBinding)).thenReturn(expectedResult);
    Object actualResult = tested.getObjectFromNameClassPair(expectedBinding);
    assertThat(actualResult).isEqualTo(expectedResult);
}