public static boolean checkActivationFlag(String activationFlag) {

        switch (activationFlag) {
            case ENABLE:
                return true;
            case DISABLE:
                return false;
            default:
                throw new IllegalArgumentException("The given activation flag is not valid!");
        }
    }
@Test (expected = IllegalArgumentException.class)
    public void testCheckActivationFlagWithException() {
        checkActivationFlag("test");
        checkActivationFlag(null);
    }