@Test
public void testDeleteClusterForException() throws HttpResponseException {

  when(context.getCluster()).thenReturn("cluster");
  when(responseException.getMessage()).thenReturn("msg");
  doThrow(responseException).when(client).deleteCluster("cluster");
  String result = clusterCommands.deleteCluster();
  verify(client).deleteCluster("cluster");
  verify(context).getCluster();
  verify(responseException).getMessage();
  assertEquals("Could not delete the cluster: msg", result);
}