    @Test
    public void awaitCallsDirectlyIfSet() {

        final Property<Object> valuedProp = new SimpleObjectProperty<>(new Object());

        final Property<Object> listener = new SimpleObjectProperty<>();

        whenPropertyIsSet(valuedProp, listener::setValue);

        assertThat(listener.getValue()).isEqualTo(valuedProp.getValue());
    }