TestdataChainedSolution solution = new TestdataChainedSolution("solution");
solution.setChainedAnchorList(Arrays.asList(a0, b0));
solution.setChainedEntityList(Arrays.asList(a1, a2, a3, b1));
SolutionDescriptor solutionDescriptor = TestdataChainedSolution.buildSolutionDescriptor();
PlanningEntityDescriptor entityDescriptor = solutionDescriptor.getPlanningEntityDescriptor(
TestdataChainedEntity.class);
PlanningVariableDescriptor variableDescriptor = entityDescriptor.getPlanningVariableDescriptor("chainedObject");
AbstractScoreDirectorFactory scoreDirectorFactory = mock(AbstractScoreDirectorFactory.class);
when(scoreDirectorFactory.getSolutionDescriptor()).thenReturn(solutionDescriptor);