@@ -0,0 +1,801 @@
+package com.coding4people.mosquitoreport.api;%0D%0A%0D%0Aimport org.glassfish.jersey.server.ApplicationHandler;%0D%0Aimport org.glassfish.jersey.server.ResourceConfig;%0D%0Aimport org.junit.Before;%0D%0Aimport org.mockito.MockitoAnnotations;%0D%0A%0D%0Aabstract public class WithService implements BaseTest %7B%0D%0A   %0D%0A    %0D%0A    @Before%0D%0A    public void initialize() %7B%0D%0A        MockitoAnnotations.initMocks(this);%0D%0A    %7D%0D%0A%0D%0A    protected ResourceConfig configure() %7B%0D%0A        return Main.commonConfig().register(new MockBinder(this));%0D%0A    %7D%0D%0A    %0D%0A    protected %3CT%3E T getService(Class%3CT%3E clazz) %7B%0D%0A        return new ApplicationHandler(configure().register(new GenericBinder%3CT%3E() %7B%0D%0A            public Class%3CT%3E getType() %7B%0D%0A                return clazz;%0D%0A            %7D%0D%0A        %7D)).getServiceLocator().getService(clazz);%0D%0A    %7D%0D%0A%7D%0D%0A

Create WithService test