### Question:
RPCHandler extends AbstractRPCHandler { public byte[] getPage( final String pagename ) throws XmlRpcException { final String text = m_engine.getManager( PageManager.class ).getPureText( parsePageCheckCondition( pagename ), -1 ); return toRPCBase64( text ); }  String getApplicationName(); Vector< String > getAllPages(); @Override Vector< Hashtable< String, Object > > getRecentChanges( Date since ); Hashtable getPageInfo( String pagename ); Hashtable getPageInfoVersion( String pagename, final int version ); byte[] getPage( final String pagename ); byte[] getPageVersion( String pagename, final int version ); byte[] getPageHTML( String pagename ); byte[] getPageHTMLVersion( String pagename, final int version ); Vector< Hashtable< String, String > > listLinks( String pagename );  }### Answer:
@Test public void testNonexistantPage() { try { m_handler.getPage( "NoSuchPage" ); Assertions.fail("No exception for missing page."); } catch( final XmlRpcException e ) { Assertions.assertEquals( RPCHandler.ERR_NOPAGE, e.code, "Wrong error code." ); } }