@Test
public void testResolveConflict() {

    Collection<FusibleValue<Double, Record, Attribute>> values = new LinkedList<>();
    Median<Record,Attribute> median = new Median<>();
    FusedValue<Double, Record, Attribute> result = median.resolveConflict(values);
    assertNull(result.getValue());
    values.add(new FusibleValue<Double,Record,Attribute>(1.0, null, null));
    result = median.resolveConflict(values);
    assertEquals(1.0d, result.getValue());
    values.add(new FusibleValue<Double,Record,Attribute>(2.0, null, null));
    result = median.resolveConflict(values);
    assertEquals(1.5d, result.getValue());
    values.add(new FusibleValue<Double,Record,Attribute>(3.0, null, null));
    result = median.resolveConflict(values);
    assertEquals(2.0d, result.getValue());
}