CaseSentryPartQueryImpl query = createCaseSentryPartQuery();
assertEquals(2, query.count());
CaseSentryPartEntity part = query
.type(CmmnSentryDeclaration.IF_PART)
.singleResult();
assertEquals(caseInstanceId, part.getCaseExecutionId());
assertEquals(caseInstanceId, part.getCaseInstanceId());
assertEquals("Sentry_1", part.getSentryId());
assertEquals(CmmnSentryDeclaration.IF_PART, part.getType());
assertNull(part.getSourceCaseExecutionId());
assertNull(part.getStandardEvent());
assertFalse(part.isSatisfied());
part = query
.type(CmmnSentryDeclaration.PLAN_ITEM_ON_PART)
.singleResult();
assertEquals(caseInstanceId, part.getCaseExecutionId());
assertEquals(caseInstanceId, part.getCaseInstanceId());
assertEquals("Sentry_1", part.getSentryId());
assertEquals(CmmnSentryDeclaration.PLAN_ITEM_ON_PART, part.getType());
assertEquals(humanTaskId, part.getSourceCaseExecutionId());
assertEquals("complete", part.getStandardEvent());
assertFalse(part.isSatisfied());
}