@Test
public void testAddBlueprintDefaultsForConnectionRefused() throws HttpResponseException {

  doThrow(new RuntimeException("Connection refused")).when(ambariClient).addDefaultBlueprints();
  when(responseException.getMessage()).thenReturn("error");
  String result = blueprintCommands.addBlueprint();
  assertEquals("Failed to add the default blueprints: Connection refused", result);
}