@Test
public void shouldReorderLevelsInParameterAndInvalidateCacheForThisParameter() {

    // given
    List<LevelKey> newOrder = Arrays.asList((LevelKey) new SimpleLevelKey("key"));
    // when
    paramEditor.reorderLevels(REPOSITORY_NAME, "parameter", newOrder);
    // then
    verify(editableRepository).reorderLevels("parameter", newOrder);
    verify(cache).invalidate("parameter");
}