@Test
public void testMaybeConfigResource_singleton() throws Exception {

    String configPath = "/apps/install/com.Test";
    OakpalPlan.fromJson(key(keys().repoInits(),
            arr().val(String.format("create path (nt:unstructured) %s", configPath))).get())
            .toOakMachineBuilder(null, getClass().getClassLoader())
            .build().initAndInspect(session -> {
        DefaultSlingSimulator.NodeRes nodeRes = new DefaultSlingSimulator.NodeRes(
                session.getNode(configPath), configPath);
        OsgiConfigInstallableParams params = DefaultSlingSimulator.maybeConfigResource(nodeRes);
        assertNotNull("expect nonnull config params", params);
        assertEquals("expect servicePid", "com.Test", params.getServicePid());
        assertNull("expect null factoryPid", params.getFactoryPid());
    });
}