@Test
public void MustCorrectPrepareQueryForCreateCollection() throws Exception {

    IObject startQuery = mock(IObject.class);
    String key = "key";
    when(keyNameField.in(startQuery)).thenReturn(key);
    Map<String, String> indexes = new HashMap<>();
    indexes.put(key, ORDERED_INDEX);
    indexes.put("isActive", ORDERED_INDEX);
    indexes.put("startDateTime", DATE_TIME_INDEX);
    testTask.prepare(startQuery);
    verify(indexesField).out(startQuery, indexes);
    verify(task).prepare(startQuery);
}