@SuppressWarnings("deprecation")
@Test
public void testBuildWithPreInstallPackages() throws Exception {

    final File testPackage = TestPackageUtil.prepareTestPackage("tmp_foo_bar.zip");
    builder().withPreInstallPackages(null)
            .withPreInstallPackages(Collections.singletonList(testPackage))
            .build().initAndInspect(session -> {
        assertTrue("path should exist", session.nodeExists("/tmp/foo/bar"));
    });
}