@Test
public void test_getExtensionLoader_NotSpiAnnotation() throws Exception {

    try {
        getExtensionLoader(NoSpiExt.class);
        fail();
    } catch (IllegalArgumentException expected) {
        assertThat(expected.getMessage(),
                allOf(containsString("org.apache.dubbo.common.extension.NoSpiExt"),
                        containsString("is not an extension"),
                        containsString("NOT annotated with @SPI")));
    }
}