public class WeightedAUCCrossValLossFunctionTest {
@Test(expected = RuntimeException.class)
public void testOnlySupportBinaryClassifications() {
WeightedAUCCrossValLossFunction crossValLoss = new WeightedAUCCrossValLossFunction("test1");
PredictiveModel predictiveModel = Mockito.mock(PredictiveModel.class);
Instance<AttributesMap> instance = Mockito.mock(Instance.class);
Mockito.when(instance.getLabel()).thenReturn("instance1");
Mockito.when(instance.getWeight()).thenReturn(1.0);
Instance<AttributesMap> instance2 = Mockito.mock(Instance.class);
Mockito.when(instance2.getLabel()).thenReturn("instance2");