@Test
public void testSane() throws Exception {

    final AtomicInteger val = new AtomicInteger(0);
    final CompDep compDep = new CompDep(val, 5, 10, 15);

    val.set(0);
    assertEquals("OK,0,null,null", compDep.call().getErrorMessage());

    val.set(5);
    assertEquals("OK,5,null,null", compDep.call().getErrorMessage());

    val.set(6);
    assertEquals("MINOR,6,5,null", compDep.call().getErrorMessage());

    val.set(10);
    assertEquals("MINOR,10,5,null", compDep.call().getErrorMessage());

    val.set(11);
    assertEquals("MAJOR,11,10,null", compDep.call().getErrorMessage());

    val.set(15);
    assertEquals("MAJOR,15,10,null", compDep.call().getErrorMessage());

    val.set(16);
    assertEquals("OUTAGE,16,15,null", compDep.call().getErrorMessage());
}