request.set("numero", numero);
request.set("validade", validade);
request.set("bandeira", bandeira);
request.set("valor", valor);
Cartao cartao = new CartaoCreate(request).createInstance();
assertThat(cartao.getTitular(), equalTo("Titular3"));
assertThat(cartao.getNumero(), equalTo(555566667777l));
assertThat(cartao.getDataDeValidade(), equalTo(new LocalDate()
.withYear(2016)
.withMonthOfYear(1)
.withDayOfMonth(1)));
assertThat(cartao.getBandeira(), equalTo(Bandeira.AMERICAN_EXPRESS));
assertThat(cartao.getValor(), equalTo(500.50));
CartaoControl control = new CartaoControl();
boolean isValid = control.creditar(cartao);
assertThat(isValid, equalTo(true));