### Question:
RestSinkConnector extends SinkConnector { @Override public List<Map<String, String>> taskConfigs(int maxTasks) { Map<String, String> taskProps = new HashMap<>(config.originalsStrings()); List<Map<String, String>> taskConfigs = new ArrayList<>(maxTasks); for (int i = 0; i < maxTasks; ++i) { taskConfigs.add(taskProps); } return taskConfigs; }  @Override String version(); @Override void start(Map<String, String> map); @Override Class<? extends Task> taskClass(); @Override List<Map<String, String>> taskConfigs(int maxTasks); @Override void stop(); @Override ConfigDef config();  }### Answer:
@Test public void shouldReturnListOfConfigsOnStartup() { Map<String, String> props = new HashMap<>(); props.put("key", "val"); when(config.originalsStrings()).thenReturn(props); List<Map<String, String>> maps = subject.taskConfigs(3); assertEquals(maps.get(0), props); assertEquals(maps.get(1), props); assertEquals(maps.get(2), props); }