@Test
public void createsInstance() throws Exception {

    Object instance = new Object();
    when(constructorDescriptor.createInstance(applicationContext)).thenReturn(instance);
    Object result = perRequestObjectFactory.getInstance(applicationContext);
    assertSame(instance, result);
}