@Test
public void testCreateInstallable() throws Exception {

    final Map<String, Object> expectProperties = new LinkedHashMap<>();
    expectProperties.put("foo", "bar");
    expectProperties.put("bar", "foo");
    final String expectServicePid = "myServicePid";
    final String expectFactoryPid = "myFactoryPid";
    final PackageId expectParentId = PackageId.fromString("test");
    final String expectJcrPath = "/some/path";
    OsgiConfigInstallableParams params = new OsgiConfigInstallableParams(expectProperties, expectServicePid,
            expectFactoryPid, null);
    OsgiConfigInstallable installable = params.createInstallable(expectParentId, expectJcrPath);
    assertSame("expect same parentId", expectParentId, installable.getParentId());
    assertSame("expect same jcrPath", expectJcrPath, installable.getJcrPath());
    assertEquals("expect same properties", expectProperties, params.getProperties());
    assertEquals("expect same servicePid", expectServicePid, params.getServicePid());
    assertEquals("expect same factoryPid", expectFactoryPid, params.getFactoryPid());
    assertNull("expect null parseError", params.getParseError());
}