// Path: src/main/java/org/neo4j/neode/probabilities/ProbabilityDistribution.java
// public abstract class ProbabilityDistribution
// {
//     private static final Random RANDOM_INSTANCE = new Random();
// 
//     public static ProbabilityDistribution flatDistribution()
//     {
//         return new FlatProbabilityDistributionUnique();
//     }
// 
//     public static ProbabilityDistribution normalDistribution()
//     {
//         return new NormalProbabilityDistributionUnique();
//     }
// 
//     private final Random random;
// 
//     protected ProbabilityDistribution()
//     {
//         this.random = RANDOM_INSTANCE;
//     }
// 
//     public abstract List<Integer> generateList( Range sizeRange, Range range );
// 
//     public abstract List<Integer> generateList( int size, Range range );
// 
//     public abstract int generateSingle( Range range );
// 
//     public abstract String description();
// 
//     protected final Random random()
//     {
//         return random;
//     }
// }


import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.neo4j.graphdb.Node;
import org.neo4j.neode.probabilities.ProbabilityDistribution;
import static java.util.Arrays.asList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
package org.neo4j.neode;






public class SparseNodeListGeneratorTest
{
    @Test
    public void shouldReturnSparseListOfExistingNodes() throws Exception
    {
        // given
        Node currentNode = mock( Node.class );

        GraphQuery query = mock( GraphQuery.class );
        Node node0 = mock( Node.class );
        Node node1 = mock( Node.class );
        when( query.execute( currentNode ) ).thenReturn( asList( node0, node1 ) );

// Path: src/main/java/org/neo4j/neode/probabilities/ProbabilityDistribution.java
// public abstract class ProbabilityDistribution
// {
//     private static final Random RANDOM_INSTANCE = new Random();
// 
//     public static ProbabilityDistribution flatDistribution()
//     {
//         return new FlatProbabilityDistributionUnique();
//     }
// 
//     public static ProbabilityDistribution normalDistribution()
//     {
//         return new NormalProbabilityDistributionUnique();
//     }
// 
//     private final Random random;
// 
//     protected ProbabilityDistribution()
//     {
//         this.random = RANDOM_INSTANCE;
//     }
// 
//     public abstract List<Integer> generateList( Range sizeRange, Range range );
// 
//     public abstract List<Integer> generateList( int size, Range range );
// 
//     public abstract int generateSingle( Range range );
// 
//     public abstract String description();
// 
//     protected final Random random()
//     {
//         return random;
//     }
// }


// Path: src/test/java/org/neo4j/neode/SparseNodeListGeneratorTest.java
import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.neo4j.graphdb.Node;
import org.neo4j.neode.probabilities.ProbabilityDistribution;
import static java.util.Arrays.asList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

package org.neo4j.neode;






public class SparseNodeListGeneratorTest
{
    @Test
    public void shouldReturnSparseListOfExistingNodes() throws Exception
    {
        // given
        Node currentNode = mock( Node.class );

        GraphQuery query = mock( GraphQuery.class );
        Node node0 = mock( Node.class );
        Node node1 = mock( Node.class );
        when( query.execute( currentNode ) ).thenReturn( asList( node0, node1 ) );

        ProbabilityDistribution probabilityDistribution = mock( ProbabilityDistribution.class );