ClusterActionHandlerFactory puppetHandlerFactory = mock(ClusterActionHandlerFactory.class);
ClusterActionHandler handler = mock(ClusterActionHandler.class);
when(puppetHandlerFactory.getRolePrefix()).thenReturn("puppet");
when(handler.getRole()).thenReturn("something-else");
LoadingCache<String, ClusterActionHandler> handlerMap = new HandlerMapFactory().create(
ImmutableSet.of(puppetHandlerFactory), ImmutableSet.of(handler));
Function<ClusterSpec, ComputeServiceContext> getCompute = mock(Function.class);
ComputeServiceContext serviceContext = mock(ComputeServiceContext.class);
ComputeService computeService = mock(ComputeService.class);