RateLimitUtils { public static <T> T coalesce(@Nullable T first, T second) { return first == null ? second : first; } private  RateLimitUtils(); static T coalesce(@Nullable T first, T second);  }
@Test void shouldReturnFirst() { Object one = new Object(); Object two = new Object(); assertThat(RateLimitUtils.coalesce(one, two)).isEqualTo(one); }
@Test void shouldReturnSecond() { Object one = null; Object two = new Object(); assertThat(RateLimitUtils.coalesce(one, two)).isEqualTo(two); }