when(computeService.getContext()).thenReturn(context);
when(context.getComputeService()).thenReturn(computeService);
TemplateBuilder templateBuilder = mock(TemplateBuilder.class);
when(computeService.templateBuilder()).thenReturn(templateBuilder);
when(templateBuilder.from((TemplateBuilderSpec)any())).thenReturn(templateBuilder);
when(templateBuilder.options((TemplateOptions)any())).thenReturn(templateBuilder);
Template template = mock(Template.class);
TemplateOptions options = mock(TemplateOptions.class);
Image image = mock(Image.class);