public List<String> getAllExtensions() {
        final List<String> extensions = new LinkedList<>();
        extensions.add(defaultExtension);
        extensions.addAll(Arrays.asList(otherExtensions));
        return Collections.unmodifiableList(extensions);
    }
@Test
    public void testGetAllExtensions() throws Exception {
        final ResourceType BPMN2 = ResourceType.BPMN2;
        final List<String> extensionsBPMN2 = BPMN2.getAllExtensions();

        assertThat(extensionsBPMN2.size()).isEqualTo(3);
        assertThat(extensionsBPMN2.contains("bpmn")).isTrue();
        assertThat(extensionsBPMN2.contains("bpmn2")).isTrue();
        assertThat(extensionsBPMN2.contains("bpmn-cm")).isTrue();
        assertThat(extensionsBPMN2.contains("bpmn2-cm")).isFalse();

        final ResourceType DRL = ResourceType.DRL;
        final List<String> extensionsDRL = DRL.getAllExtensions();

        assertThat(extensionsDRL.size()).isEqualTo(1);
        assertThat(extensionsDRL.contains("drl")).isTrue();
    }