@Test
public void test_InvalidExtName() throws Exception {

    try {
        ExtensionLoader.getExtensionLoader(InvalidNameExt.class);
        fail();
    } catch (IllegalStateException expected) {
        assertThat(expected.getMessage(),
                containsString("default name(invalid-name&) of extension com.alibaba.cooma.ext8.InvalidNameExt is invalid"));
    }
}