### Question:
DocumentEvent implements IDocumentEvent { public void setEventType( String type ) { this.type = type; }  @Override IDocument getDocument(); void setDocument( IDocument document ); @Override String getEventType(); void setEventType( String type );  }### Answer:
@Test public void testSetEventType() { docEvent.setEventType( "myType" ); assertEquals( docEvent.getEventType(), "myType" ); }