@Test
@SuppressWarnings("rawtypes")
void shouldReturnInstanceOfOpaDataFilterMongoRepository() {

    OpaMongoRepositoryFactoryBean factoryBean = new OpaMongoRepositoryFactoryBean(MyMongoRepository.class);
    factoryBean.setMongoOperations(operations);
    factoryBean.setLazyInit(true);
    factoryBean.setCreateIndexesForQueryMethods(true);
    RepositoryFactorySupport object = factoryBean.getFactoryInstance(operations);
    assertThat(object instanceof OpaMongoRepositoryFactory, is(true));
}