### Question:
SimpleKeywordConverter { public List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords) { return judgmentKeywords.stream() .map(judgmentKeyword -> convertFromJudgmentKeyword(judgmentKeyword)) .collect(Collectors.toList()); }  List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords);  }### Answer:
@Test public void convertCcJudgmentKeywords_empty_list() { List<JudgmentKeyword> judgmentKeywords = Lists.newArrayList(); List<SimpleKeyword> convertedSimpleKeywords = simpleKeywordConverter.convertJudgmentKeywords(judgmentKeywords); assertNotNull(convertedSimpleKeywords); }
@Test public void convertCcJudgmentKeywords() { int idOne = 5; int idTwo = 15; JudgmentKeyword keywordOne = new JudgmentKeyword(CourtType.COMMON, "słowo kluczowe"); Whitebox.setInternalState(keywordOne, "id", idOne); JudgmentKeyword keywordTwo = new JudgmentKeyword(CourtType.COMMON, "fajne słowo kluczowe"); Whitebox.setInternalState(keywordTwo, "id", idTwo); List<JudgmentKeyword> judgmentKeywords = Arrays.asList(keywordOne, keywordTwo); List<SimpleKeyword> convertedSimpleKeywords = simpleKeywordConverter.convertJudgmentKeywords(judgmentKeywords); assertEquals(2, convertedSimpleKeywords.size()); assertEquals(idOne, convertedSimpleKeywords.get(0).getId()); assertEquals(judgmentKeywords.get(0).getPhrase(), convertedSimpleKeywords.get(0).getPhrase()); assertEquals(idTwo, convertedSimpleKeywords.get(1).getId()); assertEquals(judgmentKeywords.get(1).getPhrase(), convertedSimpleKeywords.get(1).getPhrase()); }