@Test
public void getRights() {

    InstanceInfo instanceInfoActe = this.instanceInfo("acte", "acte-service", "BUSINESS");
    InstanceInfo instanceInfoPes = this.instanceInfo("pes", "pes-service", "BUSINESS");
    InstanceInfo instanceInfoConvocation = this.instanceInfo("convocation", "convocation-service", "BUSINESS");

    Application applicationActe = this.application(instanceInfoActe, "acte-service");
    Application applicationPes = this.application(instanceInfoPes, "pes-service");
    Application applicationConvocation = this.application(instanceInfoConvocation, "convocation-service");


    List<Application> applications = new ArrayList<>();

    applications.add(applicationActe);
    applications.add(applicationPes);
    applications.add(applicationConvocation);

    given(modulesService.activeBusinessApplications()).willReturn(applications);

    List<String> rights = rightsService.getRights();

    Assert.assertEquals(6, rights.size());
}