### Question:
DefaultVariableManager implements VariableManager { @Override public String getValue( final Context context, final String varName, final String defValue ) { try { return getValue( context, varName ); } catch( final NoSuchVariableException e ) { return defValue; } } DefaultVariableManager( final Properties props ); @Override String parseAndGetValue( final Context context, final String link ); @Override // FIXME: somewhat slow. String expandVariables( final Context context, final String source ); @Override String getValue( final Context context, final String varName, final String defValue ); @Override String getVariable( final Context context, final String name ); @Override String getValue( final Context context, final String varName );  }### Answer:
@Test public void testPageName() throws Exception { final String res = m_variableManager.getValue( m_context, "pagename" ); Assertions.assertEquals( PAGE_NAME, res ); }