@Ignore @Test public void testCreate() throws Exception { CommunityService svc = new CommunityService(); Community comm = new Community(); // using static constants allow to make assertions about them within the test client comm.setTitle(NEW_COMMUNITY); comm.setContent(TEST_COMMUNITY_DESCRIPTION); comm = svc.createCommunity(comm, true); assertEquals("NEW_COMMUNITY", comm.getTitle()); assertEquals("TEST_COMMUNITY_DESCRIPTION", comm.getContent()); }