    @Test
    public void everyPostHasItsEntitlement() {

        Membership ms = createMembership();
        addPost(ms, "körvezető");
        addPost(ms, "jani");
        when(mock.findMembershipsForUser(user)).thenReturn(Arrays.asList(ms));

        String memberEntitlement = "urn:geant:niif.hu:sch.bme.hu:entitlement:tag:Kir-Dev:1";
        String leaderEntitlemnet = "urn:geant:niif.hu:sch.bme.hu:entitlement:körvezető:Kir-Dev:1";
        String janiEntitlement = "urn:geant:niif.hu:sch.bme.hu:entitlement:jani:Kir-Dev:1";

        EntitlementProducer ep = new EntitlementProducer(user, mock);
        String entitlement = ep.createEntitlement();

        assertTrue(entitlement.contains(memberEntitlement));
        assertTrue(entitlement.contains(leaderEntitlemnet));
        assertTrue(entitlement.contains(janiEntitlement));
    }