public void setValue(final T value) {
        JiveGlobals.setProperty(key, TO_STRING.get(getConverterClass()).apply(value, this), isEncrypted());
    }
@Test
    public void shouldEncryptAProperty() {
        final SystemProperty<Long> longProperty = SystemProperty.Builder.ofType(Long.class)
            .setKey("an-encrypted-property")
            .setDefaultValue(42L)
            .setDynamic(false)
            .setEncrypted(true)
            .build();

        longProperty.setValue(84L);

        assertThat(JiveGlobals.isPropertyEncrypted("an-encrypted-property"), is(true));
    }