@Test
public void checkResolution()
        throws Exception {

    Object value = new Object();
    IKey key = mock(IKey.class);
    Object param = new Object();
    when(container.resolve(key, param)).thenReturn(value);
    Object result = IOC.resolve(key, param);
    assertSame(result, value);
    verify(container, times(1)).resolve(key, param);
}