PaymenttypeList { @GET public List<TransactionType> getPaymenttypes() { return ukelonn.getPaymenttypes(); }  @GET List<TransactionType> getPaymenttypes();  }
@Test public void testGetPaymenttypes() throws Exception { PaymenttypeList resource = new PaymenttypeList(); UkelonnService ukelonn = mock(UkelonnService.class); when(ukelonn.getPaymenttypes()).thenReturn(getPaymenttypes()); resource.ukelonn = ukelonn; List<TransactionType> paymenttypes = resource.getPaymenttypes(); assertEquals(2, paymenttypes.size()); }