### Question:
ProbabilitiesConvertor { public static double[][] convertProbabilitiesToComplexProbabilities(float[][] probabilities) { double[][] bgenProbabilities = new double[probabilities.length][probabilities[0].length]; for (int i = 0; i < probabilities.length; i++) { for (int j = 0; j < probabilities[0].length; j++) { bgenProbabilities[i][j] = probabilities[i][j]; } } return bgenProbabilities; }  static float[][] convertCalledAllelesToProbability(List<Alleles> sampleAlleles, Alleles alleles); static float[][] convertDosageToProbabilityHeuristic(float[] sampleDosages); static List<Alleles> convertProbabilitiesToAlleles(float[][] probs, Alleles variantAlleles, double minProbability); static float[] convertProbabilitiesToDosage(float[][] probs, double minProbability); static float[][] convertBiallelicComplexProbabilitiesToProbabilities(double[][] complexProbabilities); static double[][] convertProbabilitiesToComplexProbabilities(float[][] probabilities); static double[][] convertPhasedProbabilitiesToComplexProbabilities(double[][][] haplotypeProbabilities); static double[][][] haplotypeDosagesToHaplotypeProbabilities(double[][] haplotypeDosages); static double[][][] convertCalledAllelesToPhasedProbabilities(List<Alleles> sampleAlleles, Alleles alleles); static double[][] convertCalledAllelesToComplexProbabilities(
    		List<Alleles> allelesPerSample, Alleles variantAlleles);  }### Answer:
@Test public void testProbabilitiesToComplexProbabilities() { System.out.println("convertProbabilitiesToComplexProbabilities"); float[][] probs = new float[3][]; probs[0] = new float[]{0, 0, 1}; probs[1] = new float[]{1, 0, 0}; probs[2] = new float[]{0, 1, 0}; double[][] expectedProbs = new double[3][]; expectedProbs[0] = new double[]{0 ,0, 1}; expectedProbs[1] = new double[]{1, 0, 0}; expectedProbs[2] = new double[]{0, 1, 0}; double[][] actualProbabilities = ProbabilitiesConvertor .convertProbabilitiesToComplexProbabilities(probs); for (int i = 0; i < actualProbabilities.length; i++) { double[] actualProbs = actualProbabilities[i]; assertEquals(actualProbs, expectedProbs[i]); } }