@Test
// tests conversion of integer values into binary strings
public void testIntegerToBinary1(){

    this.representation = new BitSetBinaryRepresentation(this.descriptor);
    this.representation.integerToBinary(new double[] {23, 2, 31, 500}); // 31 tests whether 5.th bit does not overflow and overrides preceding zero
    boolean[] expected = new boolean[]{
            false, true, false, true, true, true,
            true, false,
            true, true, true, true,
            true, true, true, true, true, false, true, false, false
    };
    assertEquals(MathUtils.sumSizes(this.descriptor.variablesLengths), this.representation.genomeLength);
    assertEquals(this.representation.genomeLength, expected.length);
    for (int i = 0; i < expected.length; i++){
        assertEquals(expected[i], this.representation.genome.get(i));
    }
}