Assert.assertEquals(new Integer(
annotationsExpectedToBeUsedInQuarterly.size()),
new Integer(annotationsForQuarter.size()));
Assert.assertTrue(annotationsForQuarter
.containsAll(annotationsExpectedToBeUsedInQuarterly));
QuarterlyHaciendaResults haciendaResults = QuarterlyHaciendaResults
.compute(annotationsForQuarter.toArray(new Annotation[0]));
Assert.assertEquals(new Double(1000.0),
haciendaResults.getBaseImponibleRepercutido());
Assert.assertEquals(new Double(500.0),
haciendaResults.getBaseImponibleSoportado());
Assert.assertEquals(new Double(200.0),
haciendaResults.getIvaRepercutido());
Assert.assertEquals(new Double(500.0),
haciendaResults.getIvaSoportado());
Assert.assertEquals(new Double(-300.0), haciendaResults.getTotal());
}
}