@Test
public void getDistanceDelegatesToDistanceCalculator(@Injectable final VoicePrint vp) {

    final double d = 100;
    
    double distance = voicePrint.getDistance(new DistanceCalculator() {
        @Override public double getDistance(double[] features1, double[] features2) {
            return d;
        }
    }, vp);
    
    assertThat(distance, is(equalTo(d)));
}