@Test
public void testRegister01() {

    Customer c = new Customer();
    when(sequencer.getNext()).thenReturn("12345678");
    customerService.register(c, "foo");
    ArgumentCaptor<Customer> customerArg = ArgumentCaptor.forClass(
            Customer.class);
    verify(customerRepository, times(1)).save(customerArg.capture());
    assertThat(customerArg.getValue(), is(c));
    assertThat(customerArg.getValue().getCustomerCode(), is("12345678"));
    /*
     * assertThat(customerArg.getValue().getCustomerPass(), is("foo{12345678}"));
     */
}