@Test
public void testValidate() throws Exception {

  SplitInput st = new SplitInput();
  assertValidateException(st);
  st.setTestSplitSize(100);
  assertValidateException(st);
  st.setTestOutputDirectory(tempTestDirectory);
  assertValidateException(st);
  st.setTrainingOutputDirectory(tempTrainingDirectory);
  st.validate();
  st.setTestSplitPct(50);
  assertValidateException(st);
  st = new SplitInput();
  st.setTestRandomSelectionPct(50);
  st.setTestOutputDirectory(tempTestDirectory);
  st.setTrainingOutputDirectory(tempTrainingDirectory);
  st.validate();
  st.setTestSplitPct(50);
  assertValidateException(st);
  st = new SplitInput();
  st.setTestRandomSelectionPct(50);
  st.setTestOutputDirectory(tempTestDirectory);
  st.setTrainingOutputDirectory(tempTrainingDirectory);
  st.validate();
  st.setTestSplitSize(100);
  assertValidateException(st);
}