### Question:
DomainPresenceInfo { public V1Service getExternalService(String serverName) { return getSko(serverName).getExternalService().get(); } DomainPresenceInfo(Domain domain);  DomainPresenceInfo(String namespace, String domainUid); void setServerService(String serverName, V1Service service); V1Service getServerService(String serverName); V1Service removeServerService(String serverName); static Optional<DomainPresenceInfo> fromPacket(Packet packet); void setServerPod(String serverName, V1Pod pod); V1Pod getServerPod(String serverName); Stream<V1Pod> getServerPods(); Boolean isServerPodBeingDeleted(String serverName); void setServerPodBeingDeleted(String serverName, Boolean isBeingDeleted); Collection<String> getServerNames(); void setServerPodFromEvent(String serverName, V1Pod event); boolean deleteServerPodFromEvent(String serverName, V1Pod event); LastKnownStatus getLastKnownServerStatus(String serverName); void updateLastKnownServerStatus(String serverName, String status); V1Service getClusterService(String clusterName); V1Service getExternalService(String serverName); boolean isNotDeleting(); void setDeleting(boolean deleting); boolean isPopulated(); void setPopulated(boolean populated); int incrementAndGetFailureCount(); void complete(); Domain getDomain(); void setDomain(Domain domain); String getDomainUid(); String getNamespace(); ConcurrentMap<String, ServerKubernetesObjects> getServers(); Collection<ServerStartupInfo> getServerStartupInfo(); void setServerStartupInfo(Collection<ServerStartupInfo> serverStartupInfo); @Override String toString(); void addValidationWarning(String validationWarning); void clearValidationWarnings(); String getValidationWarningsAsString();  }### Answer:
@Test public void whenNoneDefined_getExternalServiceReturnsNull() { assertThat(info.getExternalService("admin"), nullValue()); }