FlowUri { @Override public String toString() { if (rawUriString != null) { return rawUriString; } else { return buildUriStringFromParts(); } } FlowUri();  FlowUri(String flowUriString);  FlowUri(String registryUrl, String bucketId, String flowId); @ApiModelProperty(value = "The URL of the NiFi Registry storing the flow.", notes = "For example, 'https://registry.myorganization.org'") String getRegistryUrl(); void setRegistryUrl(String registryUrl); @ApiModelProperty("The identifier of the bucket at the NiFi Registry that contains the flow") String getBucketId(); void setBucketId(String bucketId); @ApiModelProperty("The identifier of the flow in the NiFi Registry bucket") String getFlowId(); void setFlowId(String flowId); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testUriFromParts() { final String url = "http: final String bucketId = UUID.randomUUID().toString(); final String flowId = UUID.randomUUID().toString(); final String expectedUri = url + "/nifi-registry-api/buckets/" + bucketId + "/flows/" + flowId; final FlowUri flowUri = new FlowUri(url, bucketId, flowId); }