public static MepId valueOf(short id) {
        if (id < 1 || id > 8191) {
            throw new IllegalArgumentException(
                    "Invalid value for Mep Id - must be between 1-8191 inclusive. "
                    + "Rejecting " + id);
        }
        return new MepId(id);
    }
@Test
    public void testLowRange() {
        try {
            MepId.valueOf((short) -1);
            fail("Exception expected for MepId = -1");
        } catch (IllegalArgumentException e) {
            assertTrue(e.getMessage().contains("Invalid value for Mep Id"));
        }

        try {
            MepId.valueOf((short) 0);
            fail("Exception expected for MepId = 0");
        } catch (IllegalArgumentException e) {
            assertTrue(e.getMessage().contains("Invalid value for Mep Id"));
        }
    }