@Test
public void testGetObjectFromNameClassPair() throws NamingException {

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