@Test
public void testBuildWithInstallWatcher() throws Exception {

    final File testPackage = TestPackageUtil.prepareTestPackage("null-dependency-test.zip");
    final SlingSimulatorBackend watcher = mock(SlingSimulatorBackend.class);
    assertTrue("no errors", builder().withSlingSimulator(watcher).build()
            .scanPackage(testPackage).get(0).getViolations().isEmpty());
}