@@ -0,0 +1,1208 @@
+package google.main;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Test;%0A%0Apublic class MessageBuilderTest %7B%0A%0A%09@Test%0A%09public void testBuilderWithNull() %7B%0A%09%09String expected = %22Dla zapytania 'foo' Google niczego nie znalaz%C5%82o.%22;%0A%09%09String actual = new MessageBuilder().withQuery(%22foo%22).withNumberOfResults(null).build();%0A%09%09assertEquals(expected, actual);%0A%09%7D%0A%0A%09@Test%0A%09public void testBuilderWithZero() %7B%0A%09%09String expected = %22Dla zapytania 'foo' Google niczego nie znalaz%C5%82o.%22;%0A%09%09String actual = new MessageBuilder().withQuery(%22foo%22).withNumberOfResults(0L).build();%0A%09%09assertEquals(expected, actual);%0A%09%7D%0A%0A%09@Test%0A%09public void testBuilderWithoutFormatting() %7B%0A%09%09String expected = %22Dla zapytania 'foo' Google znalaz%C5%82o ok. 700 wynik%C3%B3w.%22;%0A%09%09String actual = new MessageBuilder().withQuery(%22foo%22).withNumberOfResults(700L).build();%0A%09%09assertEquals(expected, actual);%0A%09%7D%0A%0A%09@Test%0A%09public void testBuilderWithFormatting() %7B%0A%09%09String number = String.format(%22%25,d%22, 50_000L);%0A%09%09String expected = String.format(%22Dla zapytania 'foo' Google znalaz%C5%82o ok. %25s wynik%C3%B3w.%22,%0A%09%09%09%09number);%0A%09%09String actual = new MessageBuilder().withQuery(%22foo%22).withNumberOfResults(50_000L).build();%0A%09%09assertEquals(expected, actual);%0A%09%7D%0A%0A%7D%0A

Add JUnit tests for MessageBuilder.