### Question:
Exercise7 { public static Function1<Customer, Hash> getCustomerOrderHash() { throw new UnsupportedOperationException("Exercise 7 getCustomerOrderHash is missing!"); }  static Function1<Customer, Hash> getCustomerOrderHash();  }### Answer:
@Test public void should_generate_hash_for_customer() { final List<Customer> customers = Arrays.asList( new Customer("JUG Lodz!"), new Customer("http: new Customer("https: new Customer("https: new Customer("https: ); final Function1<Customer, Hash> tested = Exercise7.getCustomerOrderHash(); for (final Customer customer : customers) { final Hash expected = new Hash( (long) String.format("FP Workshop - %s", customer.name).length() ); final Hash actual = tested.apply(customer); assertEquals(expected, actual); } }