@Test
public void verifyConstantDefaultValues() {

  WorkflowSettings s = new WorkflowSettings.Builder().build();
  assertThat(s.immediateTransitionDelay, is(0));
  assertThat(s.shortTransitionDelay, is(30000));
  long delta = s.getShortTransitionActivation().getMillis() - currentTimeMillis() - 30000;
  assertThat(delta, greaterThanOrEqualTo(-1000L));
  assertThat(delta, lessThanOrEqualTo(0L));
  assertThat(s.historyDeletableAfter, is(nullValue()));
  assertThat(s.defaultPriority, is((short) 0));
}