public void testGetSpikeTimes() {
SpikePatternImpl sp = new SpikePatternImpl(2);
for (int i = 0; i < 150; i++) { //important to test more than initial buffer size of 100
if (i < 50) sp.addSpike(0, (float) i);
sp.addSpike(1, (float) i);
}
assertEquals(50, sp.getSpikeTimes(0).length);
assertEquals(150, sp.getSpikeTimes(1).length);