@@ -0,0 +1,1213 @@
+package com.easternedgerobotics.rov.math;%0A%0Aimport org.junit.Test;%0Aimport rx.observers.TestSubscriber;%0Aimport rx.schedulers.TestScheduler;%0Aimport rx.subjects.TestSubject;%0A%0A@SuppressWarnings(%22checkstyle:MagicNumber%22)%0Apublic final class MovingAverageTest %7B%0A    @Test%0A    public final void averageCalculationDoesReturnTheCorrectResult() %7B%0A        final TestScheduler scheduler = new TestScheduler();%0A        final TestSubject%3CFloat%3E numbers = TestSubject.create(scheduler);%0A        final TestSubscriber%3CFloat%3E subscriber = new TestSubscriber%3C%3E();%0A        MovingAverage.from(numbers, 2).subscribe(subscriber);%0A%0A        numbers.onNext(1f);%0A        scheduler.triggerActions();%0A        subscriber.assertValueCount(1);%0A        subscriber.assertValue(1f);%0A%0A        numbers.onNext(9f);%0A        scheduler.triggerActions();%0A        subscriber.assertValueCount(2);%0A        subscriber.assertValues(1f, 5f);%0A%0A        numbers.onNext(20f);%0A        scheduler.triggerActions();%0A        subscriber.assertValueCount(3);%0A        subscriber.assertValues(1f, 5f, 14.5f);%0A%0A        numbers.onNext(40f);%0A        scheduler.triggerActions();%0A        subscriber.assertValueCount(4);%0A        subscriber.assertValues(1f, 5f, 14.5f, 30f);%0A    %7D%0A%7D%0A

Add test for MovingAverage