}
protected void invoke(Document document, TestSituation situation)
throws AccessControlException, RepositoryException, WorkflowException {
Session session = getSession(situation);
Workflowable instance = new DocumentWorkflowable(getManager(),
session,
document,
getLogger());
assertNotNull(instance);
String event = situation.getEvent();
getLogger().info("Event: " + event);
WorkflowUtil.invoke(getManager(), session, getLogger(), document, event);
boolean value = instance.getLatestVersion().getValue(variableName);
getLogger().info("Variable: " + variableName + " = " + value);
getLogger().info("------------------------------------------------------");
assertEquals(value, situation.getValue());