### Question:
AnalysisContext implements IAnalysisContext { public void setContextObject( Object contextObject ) { this.contextObject = 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 testSetContextObject() throws Exception { AnalysisContext context = new AnalysisContext(); assertNull( context.getContextObject() ); context.setContextObject( new String[] { "testObjectContents" } ); Object contextObject = context.getContextObject(); assertNotNull( contextObject ); assertTrue( "Context object is not of array type!", contextObject.getClass().isArray() ); String[] contextArray = (String[]) contextObject; assertEquals( "Context object is array but not of correct size!", contextArray.length, 1 ); assertEquals( "Context object is array of correct size but wrong contents!", contextArray[0], "testObjectContents" ); }