### Question:
SessionServerConfig { public String getPrimaryServerID() { return isSiteEnabled() ? getSiteID() : localServerID; } @Inject  SessionServerConfig(@Named(SessionConstants.SESSION_DEBUG) Debug sessionDebug,
                        SessionServiceURLService sessionServiceURLService); String getPrimaryServerID(); URL getPrimaryServerURL(); String getLocalServerID(); String getLocalServerID(boolean forceReload); URL getLocalServerURL(); URL getLocalServerSessionServiceURL(); boolean isSiteEnabled(); String getSiteID(); URL getSiteURL(); Set<String> getSecondarySiteIDs(); boolean isLocalServer(String serverID); boolean isPrimaryServer(String serverID); boolean isLocalSite(String siteID); boolean isSite(String serverOrSiteId); boolean isLocalSite(SessionID sid); URL createLocalServerURL(String path); URL createServerURL(URL server, String path); Set<String> getServerIDsInLocalSite(); Collection<String> getAllServerIDs(); String getServerFromID(String serverID); boolean isLocalSessionService(URL url); boolean isLocalNotificationService(URL url); String getLBCookieValue();  }### Answer:
@Test public void localServerIsPrimaryServerIfNoSiteSetup() throws Exception { PowerMockito.mockStatic(SystemProperties.class); given(SystemProperties.get(Constants.AM_SERVER_PROTOCOL)).willReturn("http"); given(SystemProperties.get(Constants.AM_SERVER_HOST)).willReturn("openam.example.com"); given(SystemProperties.get(Constants.AM_SERVER_PORT)).willReturn("8080"); given(SystemProperties.get(Constants.AM_SERVICES_DEPLOYMENT_DESCRIPTOR)).willReturn("/openam"); String primary = "01"; PowerMockito.mockStatic(WebtopNaming.class); given(WebtopNaming.getServerID("http", "openam.example.com", "8080", "/openam")).willReturn(primary); given(WebtopNaming.getAMServerID()).willReturn("01"); given(WebtopNaming.getLocalServer()).willReturn("http: SessionServerConfig config = new SessionServerConfig(mock(Debug.class), mock(SessionServiceURLService.class)); assertThat(config.getPrimaryServerID()).isEqualTo(primary); }