ImmutableConnection implements Connection { @Override public Optional<String> getPath() { return uri.getPath(); } private  ImmutableConnection(final Builder builder); static ConnectionBuilder getBuilder(final ConnectionId id,
            final ConnectionType connectionType,
            final ConnectivityStatus connectionStatus,
            final String uri); static ConnectionBuilder getBuilder(final Connection connection); static Connection fromJson(final JsonObject jsonObject); @Override ConnectionId getId(); @Override Optional<String> getName(); @Override ConnectionType getConnectionType(); @Override ConnectivityStatus getConnectionStatus(); @Override List<Source> getSources(); @Override List<Target> getTargets(); @Override int getClientCount(); @Override boolean isFailoverEnabled(); @Override Optional<Credentials> getCredentials(); @Override Optional<String> getTrustedCertificates(); @Override String getUri(); @Override String getProtocol(); @Override Optional<String> getUsername(); @Override Optional<String> getPassword(); @Override String getHostname(); @Override int getPort(); @Override Optional<String> getPath(); @Override boolean isValidateCertificates(); @Override int getProcessorPoolSize(); @Override Map<String, String> getSpecificConfig(); @Override PayloadMappingDefinition getPayloadMappingDefinition(); @Override Set<String> getTags(); @Override Optional<ConnectionLifecycle> getLifecycle(); @Override JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate); @SuppressWarnings("OverlyComplexMethod") @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void parseUriWithoutPath() { final ConnectionUri underTest = ConnectionUri.of("amqps: assertThat(underTest.getPath()).isEmpty(); }