### Question:
ScenarioUploader { public void assignWrongSeverityCode(List<String> severityCodes, List<Scenario> scenarios) { for (Scenario scenario : scenarios) { if (severityCodes.contains(scenario.getSeverity())) { scenario.setWrongSeverityCode(null); } else { scenario.setWrongSeverityCode(scenario.getSeverity()); } } }  void processUploadedContent(long projectId, String sourceCode, Technology expectedTechnology, ScenarioListSupplier scenarioExtractor); void assignWrongSeverityCode(List<String> severityCodes, List<Scenario> scenarios); void assignWrongCountryCodes(List<String> countryCodes, List<Scenario> scenarios);  }### Answer:
@Test public void assignWrongSeverityCode_ShouldComputeAWrongSeverityCode_WhenCalled() { final List<String> severityCodes = Arrays.asList("existing"); final List<Scenario> scenarios = Arrays.asList(new Scenario() .withSeverity("existing"), new Scenario() .withSeverity("nonexitent")); cut.assignWrongSeverityCode(severityCodes, scenarios); assertThat(scenarios.get(0).getWrongSeverityCode()).isNull(); assertThat(scenarios.get(1).getWrongSeverityCode()).isEqualTo("nonexitent"); assertThat(scenarios).hasSize(2); }