@Nonnull
    public static <T> T checkNonNullAndSerializable(@Nonnull T object, @Nonnull String objectName) {
        //noinspection ConstantConditions
        if (object == null) {
            throw new IllegalArgumentException('"' + objectName + "\" must not be null");
        }
        checkSerializable(object, objectName);
        return object;
    }
@Test
    public void whenObjectToCheckNonNullAndSerializable_thenReturnObject() {
        String s = "s";
        String returned = Util.checkNonNullAndSerializable(s, "s");
        assertThat(returned).isSameAs(s);
    }