@Test
public void testGetPenalties() throws Exception {

    Agreement agreement = (Agreement) resource.getAgreement(applicationData.getSeaCloudsApplicationId())
            .getEntity();
    for(GuaranteeTerm term :  agreement.getTerms().getAllTerms().getGuaranteeTerms()){
        List<Penalty> entity = (List<Penalty>) 
                resource.getPenalties(applicationData.getSeaCloudsApplicationId(), term.getName())
                .getEntity();
        assertNotNull(entity);
        for (Penalty p : entity) {
            assertNotNull(p);
        }
    }
}