private String getOrgGuid(CloudControllerClient client, String orgName) { if (orgName == null) { return null; } CloudOrganization org = client.getOrganization(orgName, false); return org != null ? org.getMeta() .getGuid() .toString() : null; }
private void prepareControllerClient() throws Exception { CloudOrganization org = new CloudOrganization(new Meta(UUID.fromString("eed8e396-09f9-4fcc-8180-82de91dd626a"), null, null), DUMMY); when(client.getOrganization(DUMMY, false)).thenReturn(org); }