@Test
	public void invalidBillingAddrCreateProfile() {
		Address billing = getTestBillingAddress();
		Card card = getTestCard();
		ProfileResponse createdProfile = null;

		try {
			createdProfile = beanstream.profiles().createProfile(card, null);
			Assert.fail("Fail test because the billing address was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

		try {
			billing.setAddressLine1(null);
			createdProfile = beanstream.profiles().createProfile(card, billing);
			Assert.fail("Fail test because the billing address line 1 was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

		try {
			billing.setAddressLine1("12635 NW 98TH ST");
			billing.setCity(null);
			createdProfile = beanstream.profiles().createProfile(card, billing);
			Assert.fail("Fail test because the billing address city was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

		try {
			billing.setCity("Miami");
			billing.setCountry(null);
			createdProfile = beanstream.profiles().createProfile(card, billing);
			Assert.fail("Fail test because the billing address country was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

		try {
			billing.setCountry("US");
			billing.setEmailAddress(null);
			createdProfile = beanstream.profiles().createProfile(card, billing);
			Assert.fail("Fail test because the billing address email was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

		try {
			billing.setEmailAddress("pagarciaortega@gmail.com");
			billing.setPhoneNumber(null);
			createdProfile = beanstream.profiles().createProfile(card, billing);
			Assert.fail("Fail test because the billing address phone number was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

		try {
			billing.setPhoneNumber("786-241-8879");
			billing.setProvince(null);
			createdProfile = beanstream.profiles().createProfile(card, billing);
			Assert.fail("Fail test because the billing address province/state was empty");
		} catch (BeanstreamApiException ex) {
			Assert.assertTrue("", ex.getHttpStatusCode() == 400);
		}

	}