@Test
public void testEnableInitial()
{

    Tap.setInitiallyEnabled("^c|d$");
    InOutTap a = Tap.createTimer("a");
    PointTap b = Tap.createCount("b");
    InOutTap c = Tap.createTimer("c");
    PointTap d = Tap.createCount("d");
    Tap.setEnabled(".*", false);
    TapReport[] reports = Tap.getReport(".*");
    assertEquals(0, reports.length);
    Tap.enableInitial();
    reports = Tap.getReport(".*");
    assertEquals(2, reports.length);
    int mask = 0;
    for (TapReport report : reports) {
        if (report.getName().equals("c")) {
            mask |= 0x1;
        } else if (report.getName().equals("d")) {
            mask |= 0x2;
        } else {
            fail();
        }
    }
    assertEquals(0x3, mask);
}