@Test
public void Should_CreateCollection() throws Exception {

    CreateCollectionWrapper wrapper = mock(CreateCollectionWrapper.class);
    when(wrapper.getCollectionName()).thenReturn("test");
    when(wrapper.getConnectionOptionsRegistrationName()).thenReturn("connectionOptions");
    when(wrapper.getOptions()).thenReturn(null);
    ITask task = mock(ITask.class);
    IOC.register(Keys.getOrAdd("db.collection.create-if-not-exists"),
            new ApplyFunctionToArgumentsStrategy(args -> task)
    );
    actor.createTable(wrapper);
    verify(task, VerificationModeFactory.times(1)).execute();
}