@Test
public void testLoadFromCheckSpecs_singleInline() throws Exception {

    assertEquals("single inline check is loaded", 1,
            Locator.loadFromCheckSpecs(Collections.singletonList(
                    CheckSpec.fromJson(key("inlineScript", "function getCheckName() { return \"simple inline\"; }").get()))).size());
    assertEquals("simple inline check name is same", "simple inline",
            Locator.loadFromCheckSpecs(Collections.singletonList(
                    CheckSpec.fromJson(key("inlineScript", "function getCheckName() { return \"simple inline\"; }").get()))).get(0).getCheckName());
    assertEquals("simple inline check name is alias", "alias for simple inline",
            Locator.loadFromCheckSpecs(Collections.singletonList(
                    CheckSpec.fromJson(key("name", "alias for simple inline").key("inlineScript", "function getCheckName() { return \"simple inline\"; }").get()))).get(0).getCheckName());
}