GetResult { public static <V> GetResult<V> success(final V value, final long cas) { requireNonNull(value, "value"); return new GetResult<>(value, cas); } private  GetResult(final V value, final long cas); static GetResult<V> success(final V value, final long cas); V getValue(); long getCas(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test(expected = NullPointerException.class) public void testCstrNullValue() { GetResult.success(null, 123); }