public void test_of_lookup_notFound() { assertThrowsIllegalArg(() -> PayReceive.of("Rubbish")); }
public void test_of_lookup_null() { assertThrowsIllegalArg(() -> PayReceive.of(null)); }
@Test(dataProvider = "name") public void test_of_lookup(PayReceive convention, String name) { assertEquals(PayReceive.of(name), convention); }