*/
public void testGetValues() throws SimulationException {
myGenerator.setNextOutput(true, 1f);
myOrigin.run(new float[]{0f}, new float[]{0f});
InstantaneousOutput output = myOrigin.getValues();
assertTrue(output instanceof SpikeOutput);
assertEquals(1, output.getDimension());
assertEquals(Units.SPIKES, output.getUnits());
assertEquals(1, ((SpikeOutput) output).getValues().length);
assertEquals(true, ((SpikeOutput) output).getValues()[0]);
myGenerator.setMode(SimulationMode.CONSTANT_RATE);
myOrigin.run(new float[]{0f}, new float[]{0f});
output = myOrigin.getValues();
assertTrue(output instanceof RealOutput);
assertEquals(1, output.getDimension());
assertEquals(Units.SPIKES_PER_S, output.getUnits());
assertEquals(1, ((RealOutput) output).getValues().length);
assertTrue(((RealOutput) output).getValues()[0] > .99f);
}