@Test
public void tetsExecuteWhenClusterIsStable() throws Exception {

    final ControlClusterStatus statusValue = mock(ControlClusterStatus.class);
    when(statusValue.getClusterStatus()).thenReturn("stable");
    when(niciraApi.getControlClusterStatus()).thenReturn(statusValue);
    final NiciraCheckHealthCommandWrapper commandWrapper = new NiciraCheckHealthCommandWrapper();
    final Answer answer = commandWrapper.execute(new CheckHealthCommand(), niciraResource);
    assertThat(answer.getResult(), equalTo(true));
}