### Question:
Domain extends BaseEntity { public String getIdentifierPrefix() { StringBuilder sb = new StringBuilder(); URL baseUrl = this.getRuntime().getServerBaseUrl(); Boolean httpsEnabled = getBooleanAttribute("https.identifier.enabled"); final String protocol; if (httpsEnabled != null) { protocol = httpsEnabled.booleanValue() ? "https" : "http"; } else { protocol = baseUrl.getProtocol(); } sb.append(protocol).append(": switch (getType()) { case Domain.TYPE_SUBDOMAIN: break; case Domain.TYPE_SUBDIRECTORY: sb.append(getName()); appendPort(sb, baseUrl); sb.append(baseUrl.getPath()); appendMemberPath(sb); break; default: break; } return sb.toString(); } Domain();  Domain(final String name, final int type);  Domain(final String name, final int type, final String serverHost); String getName(); void setName(final String name); int getType(); void setType(final int type); String getServerHost(); void setServerHost(final String serverHost); String getMemberPath(); void setMemberPath(final String memberPath); UsernameConfiguration getUsernameConfiguration(); void setUsernameConfiguration(
			final UsernameConfiguration usernameConfiguration); Map<String, String> getConfiguration(); void setConfiguration(final Map<String, String> configuration); DomainRuntime getRuntime(); void setRuntime(final DomainRuntime runtime); String getIdentifierPrefix(); String getIdentifierSuffix(); String getAttribute(final String attributeName); String getAttribute(final String attributeName,
			final String defaultValue); Boolean getBooleanAttribute(final String attributeName); Boolean getBooleanAttribute(final String attributeName,
			final Boolean defaultValue); int getIntAttribute(final String attributeName); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static final int TYPE_SUBDOMAIN; static final int TYPE_SUBDIRECTORY; }### Answer:
@Test public void testGetIdentifierPrefix() throws MalformedURLException { URL url = new URL("http: domain.getRuntime().setServerBaseUrl(url); domain.setName("example1.com"); domain.setType(Domain.TYPE_SUBDOMAIN); assertEquals("http: }