### Question:
BuildServiceImpl implements BuildService { @Override public IncrementalBuildResults applyBatchResourceChanges(final Module module, final Map<Path, Collection<ResourceChange>> changes) { if (module == null) { return new IncrementalBuildResults(); } return buildServiceHelper.localBuild(module, changes); } BuildServiceImpl(); @Inject  BuildServiceImpl(final KieModuleService moduleService,
                            final BuildServiceHelper buildServiceHelper,
                            final LRUBuilderCache cache); @Override BuildResults build(final Module module); void build(final Module module,
                      final Consumer<Builder> consumer); @Override BuildResults buildAndDeploy(final Module module); @Override BuildResults buildAndDeploy(final Module module,
                                       final DeploymentMode mode); @Override BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers); @Override BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers,
                                       final DeploymentMode mode); @Override boolean isBuilt(final Module module); @Override IncrementalBuildResults addPackageResource(final Path resource); @Override IncrementalBuildResults deletePackageResource(final Path resource); @Override IncrementalBuildResults updatePackageResource(final Path resource); @Override IncrementalBuildResults applyBatchResourceChanges(final Module module,
                                                             final Map<Path, Collection<ResourceChange>> changes);  }### Answer:
@Test public void testApplyBatchResourceChanges() { when(buildServiceHelper.localBuild(module, resourceChanges)).thenReturn(incrementalBuildResults); IncrementalBuildResults result = buildService.applyBatchResourceChanges(module, resourceChanges); assertEquals(incrementalBuildResults, result); verify(buildServiceHelper, times(1)).localBuild(module, resourceChanges); }