when(client.execute(ListOfIscsiTargetsNmsResponse.class, "stmf", "list_targets")).thenReturn(new ListOfIscsiTargetsNmsResponse());
assertFalse(appliance.isIscsiTargetExists(targetName));
final HashMap<String, IscsiTarget> result = new HashMap<String, IscsiTarget>();
result.put("any", new IscsiTarget("Online", "iSCSI", "any", "0", "-", "iscsit"));
when(client.execute(ListOfIscsiTargetsNmsResponse.class, "stmf", "list_targets")).thenReturn(new ListOfIscsiTargetsNmsResponse(result));
assertFalse(appliance.isIscsiTargetExists(targetName));
result.put(targetName, new IscsiTarget("Online", "iSCSI", targetName, "0", "-", "iscsit"));
when(client.execute(ListOfIscsiTargetsNmsResponse.class, "stmf", "list_targets")).thenReturn(new ListOfIscsiTargetsNmsResponse(result));
assertTrue(appliance.isIscsiTargetExists(targetName));
}