WebApplicationContext extends StandaloneApplicationContext { @Override public String getPentahoServerName() { return PentahoSystem .getSystemSetting( "name", Messages.getInstance().getString( "PentahoSystem.USER_SYSTEM_TITLE" ) ); } WebApplicationContext( final String solutionRootPath, final String fullyQualifiedServerUrl,
      final String applicationPath, final Object context );  WebApplicationContext( final String solutionRootPath, final String fullyQualifiedServerUrl,
      final String applicationPath ); @Override String getFullyQualifiedServerURL(); @Override String getPentahoServerName(); @Override void setFullyQualifiedServerURL( final String fullyQualifiedServerUrl );  }
@Test public void testGetPentahoServerName() throws Exception { webAppContext = new WebApplicationContext( "rootPath", null, null ); ISystemSettings settingsService = mock( ISystemSettings.class ); when( settingsService.getSystemSetting( eq( "name"), anyString() ) ).thenReturn( "PENTAHO" ); PentahoSystem.setSystemSettingsService( settingsService ); assertEquals( "PENTAHO", webAppContext.getPentahoServerName() ); }