Event extends Component { public void setProbability(Distribution probability) { this.probability = probability; firePropertyChange(); } Event();  Event(Event event);  Event(String name, String description, ExecutionState dependency, Distribution probability, ExecutionState executionState); void deepOverwrite(Event sourceEvent); ExecutionState getDependency(); void setDependency(ExecutionState dependency); Distribution getProbability(); void setProbability(Distribution probability); ExecutionState getExecutionState(); void setExecutionState(ExecutionState executionState);  }
@Test public void testSetProbability() { Distribution dist = new DiscreteDistribution(); event.setProbability(dist); assertEquals(dist, event.getProbability()); }