public String getMode() {
        return Integer.toString(toInteger(), 8);
    }
@Test
    public void testToMode() {
        final Permission permission = new Permission(Permission.Action.read,
                Permission.Action.none, Permission.Action.none);
        assertEquals("400", permission.getMode());
    }