### Question:
AnalysisContext implements IAnalysisContext { @Override public Object getContextObject() { return contextObject; } protected  AnalysisContext();  AnalysisContext( String contextName, Object contextObject );  AnalysisContext( String contextName ); @Override String getContextName(); @Override Object getContextObject(); void setContextName( String contextName ); void setContextObject( Object contextObject );  }### Answer:
@Test public void testGetContextObject() throws Exception { AnalysisContext context = new AnalysisContext( "myContext", null ); assertNotNull( context ); assertEquals( "Name of context is not as expected!", "myContext", context.getContextName() ); context = new AnalysisContext( "myContext", new String( "myContextObject" ) ); assertNotNull( context ); Object contextObject = context.getContextObject(); assertNotNull( contextObject ); assertEquals( contextObject.toString(), "myContextObject" ); context = new AnalysisContext( "myContext", new Integer( 5 ) ); contextObject = context.getContextObject(); assertNotNull( contextObject ); assertTrue( "Object is not of the expected type!", contextObject instanceof Integer ); assertEquals( contextObject, 5 ); }