Mockito.verify(builder).install();
// Now we're going to check that the service that was created inside aii.update() works correctly...
// First, mock up a separate ServiceController, specific to the service created in aii.update()
ServiceController innerController = Mockito.mock(ServiceController.class);
StartContext context = Mockito.mock(StartContext.class);
Mockito.when(context.getController()).thenReturn(innerController);
Assert.assertEquals(1, addedServices.size());
// Call start() on the service, which should do its work...
addedServices.get(0).start(context);