question: public void test_putGet ( ) { final List < IBindingSet [ ] > in = new LinkedList < IBindingSet [ ] > ( ) ; { final List < IBindingSet > t = new LinkedList < IBindingSet > ( ) ; t . add ( new ListBindingSet ( ) ) ; in . add ( t . toArray ( new IBindingSet [ 0 ] ) ) ; } final String solutionSet = getName ( ) ; try { solutionSetsManager . getSolutions ( solutionSet ) ; fail ( "Expecting: " + IllegalStateException . class ) ; } catch ( IllegalStateException ex ) { if ( log . isInfoEnabled ( ) ) log . info ( "Ignoring expected exception: " + ex ) ; } assertFalse ( solutionSetsManager . existsSolutions ( solutionSet ) ) ; solutionSetsManager . putSolutions ( solutionSet , new CloseableIteratorWrapper < IBindingSet [ ] > ( in . iterator ( ) ) ) ; assertTrue ( solutionSetsManager . existsSolutions ( solutionSet ) ) ; final ICloseableIterator < IBindingSet [ ] > out = solutionSetsManager . getSolutions ( solutionSet ) ; assertSameSolutionsAnyOrder ( flatten ( in . iterator ( ) ) , out ) ; }
target:  Unit test for saving an empty named solution set and then reading it back.