currentProperty, annotationIndex);
annotationsForProperty.add(currentAnnotation);
}
Assert.assertTrue(annotationsForProperty
.containsAll(annotationsExpectedToBeUsedInYearly));
YearlyHaciendaResults yearlyHaciendaResults = YearlyHaciendaResults.compute(annotationsExpectedToBeUsedInYearly.toArray(new Annotation[0]));
Assert.assertEquals(new Double(300.0), yearlyHaciendaResults.getAmortizacion());
Assert.assertEquals(new Double(0.0), yearlyHaciendaResults.getComunidad());
Assert.assertEquals(new Double(750.0), yearlyHaciendaResults.getGastosVarios());
Assert.assertEquals(new Double(2000.0), yearlyHaciendaResults.getIngresos());
Assert.assertEquals(new Double(400.0), yearlyHaciendaResults.getRetenciones());
}
}