@@ -0,0 +1,1635 @@
+package com.orgsync.api.integration;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.List;%0A%0Aimport org.junit.AfterClass;%0Aimport org.junit.Test;%0A%0Aimport com.orgsync.api.MembershipLogsResource;%0Aimport com.orgsync.api.Resources;%0Aimport com.orgsync.api.model.membership_logs.MembershipLogEntry;%0Aimport com.orgsync.api.model.membership_logs.MembershipLogEntryRequest;%0Aimport com.typesafe.config.Config;%0A%0Apublic class MembershipLogsIntergrationTest extends BaseIntegrationTest%3CMembershipLogsResource%3E %7B%0A%0A    public MembershipLogsIntergrationTest() %7B%0A        super(Resources.MEMBERSHIP_LOGS);%0A    %7D%0A%0A    @AfterClass%0A    public static void cleanup() %7B%0A        BaseIntegrationTest.cleanup(Resources.MEMBERSHIP_LOGS);%0A    %7D%0A%0A    @Test%0A    public void testGetMembershipLogEntries() throws Exception %7B%0A        List%3CMembershipLogEntry%3E result = getResult(getResource().getLogEntries(new MembershipLogEntryRequest()));%0A%0A        assertEquals(2, result.size());%0A    %7D%0A%0A    @Test%0A    public void testGetMembershipLogForAcount() throws Exception %7B%0A        Config userConfig = DbTemplate.getList(%22users%22).get(0);%0A        Config portalConfig = DbTemplate.getList(%22portals%22).get(0);%0A%0A        List%3CMembershipLogEntry%3E result = getResult(getResource().getLogEntries(%0A                new MembershipLogEntryRequest().setAccountId(userConfig.getInt(%22id%22))));%0A%0A        assertEquals(1, result.size());%0A%0A        MembershipLogEntry entry = result.get(0);%0A        assertEquals(%22Join%22, entry.getAction());%0A        assertEquals(userConfig.getInt(%22id%22), entry.getAccountId());%0A        assertEquals(portalConfig.getInt(%22id%22), entry.getOrgId());%0A    %7D%0A%0A%7D%0A

Add integration tests for the org membership log entries.