@Test
public void testGetServices_shouldReturnServices() {

    {
        Collection<InvalidPriorityInterface> services = context.getServices(InvalidPriorityInterface.class);
        assertThat(services).isNotNull();
        assertThat(services).hasSize(2);
        for (InvalidPriorityInterface service : services) {
            assertThat(service instanceof InvalidPriorityImpl1 || service instanceof InvalidPriorityImpl2).isTrue();
        }
    }
    {
        List<MultiImplsInterface> services = context.getServices(MultiImplsInterface.class);
        assertThat(services).isNotNull();
        assertThat(services).hasSize(3);
        assertThat(services.get(0) instanceof MultiImpl2).isTrue();
        assertThat(services.get(1) instanceof MultiImpl1).isTrue();
        assertThat(services.get(2) instanceof MultiImpl3).isTrue();
    }
}