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

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