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

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

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

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

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

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