allowingObjectSpecCorrespondingClassAndSpecIdIs(boolean.class);
context.checking(new Expectations() {
{
one(mockEncodableFacet).fromEncodedString("aString");
will(throwException(new TextEntryParseException("'aString' cannot be parsed as a boolean value")));
}
});
// when
JsonValueEncoder.asAdapter(mockObjectSpec, representation, null);