### Question:
ApplicationURI { public Object getURIPart(String partName) { switch (partName) { case SupportedParameters.HOST: return getHost(); case SupportedParameters.DOMAIN: return getDomain(); case SupportedParameters.ROUTE_PATH: return getPath(); default: return null; } } ApplicationURI(String initial);  ApplicationURI(CloudRoute route); static String getDomainFromURI(String uri); Map<String, Object> getURIParts(); Object getURIPart(String partName); void setURIPart(String partName, String part); @Override String toString(); String getHost(); void setHost(String host); String getDomain(); void setDomain(String domain); String getPath(); void setPath(String path); @Override int hashCode(); @Override boolean equals(Object object);  }### Answer:
@Test void testGetURIPart() { ApplicationURI applicationURI = new ApplicationURI(createCloudRoute(CUSTOM + "host", createCloudDomain(CUSTOM + "domain"), "/" + CUSTOM + "path")); Assertions.assertEquals(CUSTOM + "host", applicationURI.getURIPart(SupportedParameters.HOST)); Assertions.assertEquals(CUSTOM + "domain", applicationURI.getURIPart(SupportedParameters.DOMAIN)); Assertions.assertEquals("/" + CUSTOM + "path", applicationURI.getURIPart(SupportedParameters.ROUTE_PATH)); Assertions.assertNull(applicationURI.getURIPart("invalid-parameter")); }