### Question:
CustomerRepository { public Customer getFallbackCustomer(Long id, Throwable e) { log.warn("Failed to obtain Customer, " + e.getMessage() + " for customer with id " + id); Customer c = new Customer(); c.setId(id); c.setUsername("Unknown"); c.setName("Unknown"); c.setSurname("Unknown"); c.setAddress("Unknown"); c.setCity("Unknown"); c.setCountry("Unknown"); c.setZipCode("Unknown"); return c; }  @HystrixCommand(commandKey = "Customers", fallbackMethod = "getFallbackCustomer", commandProperties = { @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "1000") }) Customer getCustomerById(Long id); Customer getFallbackCustomer(Long id, Throwable e);  }### Answer:
@Test public void getFallbackCustomerTest() { Customer c = new Customer(); c.setId(new Long(1)); c.setUsername("Unknown"); c.setName("Unknown"); c.setSurname("Unknown"); c.setAddress("Unknown"); c.setCity("Unknown"); c.setCountry("Unknown"); c.setZipCode("Unknown"); Customer found = repository.getFallbackCustomer(new Long(1), new Exception()); assertThat(found).isEqualTo(c); }