@Test
public void testGetsObject() throws Exception {

    ObjectFactory<MirageRequest> factory = Mockito.mock(ObjectFactory.class);
    Mockito.when(factory.create()).thenReturn(Mockito.mock(MirageRequest.class));
    ObjectPool<MirageRequest> pool = new ObjectPool<>(factory, 3);
    Assert.assertNotNull(pool.getObject());
}