@@ -0,0 +1,1006 @@
+package com.coding4people.mosquitoreport.api;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.net.URL;%0A%0Aimport org.junit.Test;%0A%0Apublic class MainTest %7B%0A    @Test%0A    public void testMain() throws IOException, InterruptedException %7B%0A        Thread thread = new Thread(new Runnable() %7B%0A            public void run() %7B%0A                try %7B%0A                    Main.main(null);%0A                %7D catch (IOException e) %7B%0A                    e.printStackTrace();%0A                %7D%0A            %7D%0A        %7D);%0A%0A        thread.start();%0A        thread.join(3000);%0A%0A        String line = %22%22;%0A        %0A        try (BufferedReader reader = new BufferedReader(%0A                new InputStreamReader(new URL(%22http://localhost:9000/healthcheck%22).openStream(), %22UTF-8%22))) %7B%0A            line = reader.readLine();%0A        %7D%0A        %0A        assertEquals(%22%7B%5C%22status%5C%22:%5C%22ok%5C%22%7D%22, line);%0A%0A        thread.interrupt();%0A    %7D%0A%7D%0A

Test main