@Test
public void testOrder() {

    AppConfigurationEntry[] entries = this.configuration.getAppConfigurationEntry(JaasAuthConfig.JAAS_SERVICES);
    List<String> names = Arrays.stream(entries)
                    .map(e -> e.getOptions().get("name"))
                    .map(String.class::cast)
                    .collect(Collectors.toList());
    assertThat(names).containsExactly("1", "4", "2", "3");
}