@Test
public void testParseDurationInvalid()
{

  try
  {
    ConfigHelper.parseDuration("", TimeUnit.MILLISECONDS);
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseDuration("1month", TimeUnit.MILLISECONDS);
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseDuration("1minutae", TimeUnit.MILLISECONDS);
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseDuration("1.3hr", TimeUnit.MILLISECONDS);
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseDuration("-2", TimeUnit.MILLISECONDS);
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
}