@Test
public void testCustomBusinessValue() throws JAXBException, FileNotFoundException, ModelConversionException {

    
    File file = getResourceFile("/samples/test_parse_business.xml");
    eu.atos.sla.parser.data.wsag.Agreement agreementXML = readXml(file);
    IAgreement a = modelConverter.getAgreementFromAgreementXML(agreementXML, "");
    
    IPenaltyDefinition[] expected = new IPenaltyDefinition[] {
        new PenaltyDefinition(1, new Date(0), "discount", "%", "35", "P1D"),
        new PenaltyDefinition(5, new Date(24*60*60*1000), "service", "", "sms", "P1M")
    };
    for (IGuaranteeTerm gt : a.getGuaranteeTerms()) {
        int i = 0;
        for (IPenaltyDefinition actual : gt.getBusinessValueList().getPenalties()) {
            
            assertEquals(expected[i], actual);
            i++;
        }
    }
}