Handling the case of beConstructedThrough not returning object