public void setup() throws IOException {
ApiRootResource apiRootResource = Mockito.mock(ApiRootResource.class);
RootResourceV1 rootResourceV1 = new FakeRootResourceV1();
Mockito.when(apiRootResource.getRootV1()).thenReturn(rootResourceV1);
AmbariManagerClientbuilder clientbuilder = Mockito.mock(AmbariManagerClientbuilder.class);
Mockito.when(clientbuilder.build()).thenReturn(apiRootResource);
AmClusterValidator validator = Mockito.mock(AmClusterValidator.class);
Mockito.when(validator.validateBlueprint(blueprint)).thenReturn(true);
//Mock static utility using Mockit.