/** * It validates an {@link Address} POJO * * @param pojo */ private void validateAddress(Address pojo) { Assert.assertNotNull("The address cannot be null!", pojo); Assert.assertNotNull("The address1 cannot be null!", pojo.getAddress1()); Assert.assertNotNull("The address2 cannot be null!", pojo.getAddress2()); Assert.assertNotNull("The city cannot be null!", pojo.getCity()); Assert.assertNotNull("The zipCode cannot be null!", pojo.getZipCode()); validateCountry(pojo.getCountry()); }