@Test
public void testSpawnSampleProcessForLocalhost() throws Exception {
DelegateExecution execution = mock(DelegateExecution.class);
Pool pool = mock(Pool.class, withSettings().serializable());
Software software = mock(Software.class, withSettings().serializable());
when(software.isCachedImage()).thenReturn(false);
when(pool.getSoftware()).thenReturn(software);
when(execution.getVariable(eq(CoreProcessVariables.POOL))).thenReturn(pool);
when(execution.getVariable(eq(CoreProcessVariables.POOL_BUSINESS_KEY))).thenReturn(BUSINESS_KEY);
List<Machine> machines = Lists.newArrayList(