public static <T> T notNull(T obj, String name) {
    if (obj == null) {
      throw new IllegalArgumentException(name + " cannot be null");
    }
    return obj;
  }
@Test
  public void notNullNotNull() {
    assertEquals(Check.notNull("value", "name"), "value");
  }