}
private Annotation getPropertyIncomeAnnotationDoneNotForCompany(
PropertyBook propertyBook) {
// property income: done and for_company
PropertyIncomeAnnotation propertyIncomeAnnotation_done_not_for_company = new PropertyIncomeAnnotation();
propertyIncomeAnnotation_done_not_for_company.setAmount(1000.0);
propertyIncomeAnnotation_done_not_for_company.setBook(propertyBook);
propertyIncomeAnnotation_done_not_for_company.setConcept("Renting");
propertyIncomeAnnotation_done_not_for_company.setDate(getDateFromString("01/01/2012"));
propertyIncomeAnnotation_done_not_for_company.setDone(true);
propertyIncomeAnnotation_done_not_for_company.setForCompany(false);
propertyIncomeAnnotation_done_not_for_company.setRetention(20.0);
propertyIncomeAnnotation_done_not_for_company.setVat(20.0);
propertyIncomeAnnotation_done_not_for_company = AnnotationsBusiness
.createAnnotation(propertyIncomeAnnotation_done_not_for_company);
// for premises, it is always a company
Assert.assertFalse(propertyIncomeAnnotation_done_not_for_company
.getAppliesForCompany());
// for premises, retention and vat always applies when done
Assert.assertTrue(propertyIncomeAnnotation_done_not_for_company
.getAppliesRetentionAndVAT());
// when vat = retention --> tax_base == amount
Assert.assertEquals(new Double(1000.0),
propertyIncomeAnnotation_done_not_for_company
.getBaseImponibleQuarterly());
// in case of property, base tax = base tax yearly
Assert.assertEquals(new Double(1000.0),
propertyIncomeAnnotation_done_not_for_company
.getBaseImponibleYearly());
// in case of property, declared = base tax yearly
Assert.assertEquals(new Double(1000.0),
propertyIncomeAnnotation_done_not_for_company
.getDeclaredYearly());
// for the properties the retention amount is the retention percentage
// of the amount
Assert.assertEquals(new Double(1000.0 * 20.0 / 100.0),
propertyIncomeAnnotation_done_not_for_company
.getRetentionAmountYearly());
// for income the signed amount must be the same as the unsigned amount
Assert.assertEquals(new Double(1000.0),
propertyIncomeAnnotation_done_not_for_company.getSignedAmount());
Assert.assertEquals(new Long(100000L),
propertyIncomeAnnotation_done_not_for_company
.getTwoDecimalLongCodifiedAmount());
return propertyIncomeAnnotation_done_not_for_company;
}