@Test
public void testGetWhenFirstKaleoTaskAssignmentInstanceIsNotNull() {

	String expectedAssigneeClassName = StringUtil.randomString();
	long expectedAssigneeClassPK = RandomTestUtil.randomLong();
	KaleoTaskAssignmentInstance firstKaleoTaskAssignmentInstance =
		KaleoRuntimeTestUtil.mockKaleoTaskAssignmentInstance(
			expectedAssigneeClassName, expectedAssigneeClassPK);
	KaleoTaskInstanceToken kaleoTaskInstanceToken =
		KaleoRuntimeTestUtil.mockKaleoTaskInstanceToken(
			firstKaleoTaskAssignmentInstance);
	FirstWorkflowTaskAssigneeSupplier firstWorkflowTaskAssigneeSupplier =
		new FirstWorkflowTaskAssigneeSupplier(kaleoTaskInstanceToken);
	Optional<WorkflowTaskAssignee> firstWorkflowTaskAssigneeOptional =
		firstWorkflowTaskAssigneeSupplier.get();
	Assert.assertTrue(firstWorkflowTaskAssigneeOptional.isPresent());
	KaleoRuntimeTestUtil.assertWorkflowTaskAssignee(
		expectedAssigneeClassName, expectedAssigneeClassPK,
		firstWorkflowTaskAssigneeOptional.get());
}