static <T> RackAwareGraphConstructor<T> create(final AssignmentConfigs assignmentConfigs,
                                                   final Map<Subtopology, Set<TaskId>> tasksForTopicGroup) {
        return create(assignmentConfigs.rackAwareAssignmentStrategy(), new ArrayList<>(new TreeMap<>(tasksForTopicGroup).values()));
    }
@Test
    public void shouldReturnMinCostConstructor() {
        final AssignmentConfigs config = new AssignorConfiguration(
            new StreamsConfig(configProps(StreamsConfig.RACK_AWARE_ASSIGNMENT_STRATEGY_MIN_TRAFFIC)).originals()).assignmentConfigs();
        final RackAwareGraphConstructor constructor = RackAwareGraphConstructorFactory.create(config, mkMap());
        assertThat(constructor, instanceOf(MinTrafficGraphConstructor.class));
    }