@@ -0,0 +1,1576 @@
+package plagiarism;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.nio.charset.StandardCharsets;%0Aimport org.junit.jupiter.api.Test;%0A%0Aclass PlagiarismTest %7B%0A%0A  private Plagiarism plagiarism;%0A%0A  @Test%0A  void checksum() throws Exception %7B%0A    final String input = %22Hallo Welt%22;%0A    plagiarism = new Plagiarism(new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)));%0A    final int expected = 972;%0A    final int actual = plagiarism.checksum();%0A    assertThat(actual).isEqualTo(expected);%0A  %7D%0A%0A  @Test%0A  void checksumWithSpecialCharacters() throws Exception %7B%0A    final String input = %22Hallo Welt!%22;%0A    plagiarism = new Plagiarism(new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)));%0A    final int expected = 972;%0A    final int actual = plagiarism.checksum();%0A    assertThat(actual).isEqualTo(expected);%0A  %7D%0A%0A  @Test%0A  void checksumWithIrrelevantWords() throws Exception %7B%0A    final String input = %22Hallo die Welt%22;%0A    plagiarism = new Plagiarism(new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)));%0A    final int expected = 972;%0A    final int actual = plagiarism.checksum();%0A    assertThat(actual).isEqualTo(expected);%0A  %7D%0A%0A  @Test%0A  void checksumWithIrrelevantWordsAndSpecialCharacters() throws Exception %7B%0A    final String input = %22Hallo, die Welt!%22;%0A    plagiarism = new Plagiarism(new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)));%0A    final int expected = 972;%0A    final int actual = plagiarism.checksum();%0A    assertThat(actual).isEqualTo(expected);%0A  %7D%0A%7D%0A

checksum test