@Test public void findsCustomerById() throws Exception { Customer customer = repository.findById(2L); assertThat(customer.getFirstname(), is("Carter")); assertThat(customer.getLastname(), is("Beauford")); }