public void testSetServiceState_IfStateAlreadySetToDesired() {
StateProvider mockStateProvider = createStrictMock(StateProvider.class);
ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);
TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();
expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
expect(mockClusterDefinitionProvider.getInputStream()).andDelegateTo(testClusterDefinitionProvider);
expect(mockStateProvider.getRunningState(anyObject(String.class), anyObject(String.class))).andReturn(StateProvider.State.Running).times(5);