@Test(expected = IllegalStateException.class)
public void testNiFiDescriptorFailInvalidAllowable() {

    PropertyDescriptor desc = TestPropertyValidationContext.createDescriptor("boolean", true, Arrays.asList("true", "false"), "anotherValue");
    desc.setValidator("BOOLEAN_VALIDATOR");
    desc.setDescription("oh description");
    desc.setSensitive(true);
    org.apache.nifi.components.PropertyDescriptor otherDescriptor = DescriptorUtils.toComponentDescriptor(desc);
    fail("Should not get here");
}