@Test
public void testCreateRecommendationCommand_returnsComponentLayoutRecommendationCommand()
    throws IOException, StackAdvisorException {

  Configuration configuration = mock(Configuration.class);
  when(configuration.getRecommendationsArtifactsRolloverMax()).thenReturn(100);
  StackAdvisorRunner saRunner = mock(StackAdvisorRunner.class);
  AmbariMetaInfo metaInfo = mock(AmbariMetaInfo.class);
  StackAdvisorHelper helper = new StackAdvisorHelper(configuration, saRunner, metaInfo);
  StackAdvisorRequestType requestType = StackAdvisorRequestType.HOST_GROUPS;
  StackAdvisorCommand<RecommendationResponse> command = helper
      .createRecommendationCommand(requestType);
  assertEquals(ComponentLayoutRecommendationCommand.class, command.getClass());
}