@Test(expected = IllegalArgumentException.class)
public void testCreateInstallable_throws() 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 Exception expectParseError = new IllegalArgumentException("my parse error");
    OsgiConfigInstallableParams params = new OsgiConfigInstallableParams(expectProperties, expectServicePid,
            expectFactoryPid, expectParseError);
    params.createInstallable(PackageId.fromString("test"), "/some/path");
}