@Override
    public <T> T serialize(final Serializer<T> dict) {
        dict.setStringForKey(this.getSymbol(), "Mask");
        return dict.getSerialized();
    }
@Test
    public void testGetAsDictionary() {
        assertEquals(new Permission(777), new PermissionDictionary().deserialize(new Permission(777).serialize(SerializerFactory.get())));
        assertEquals(new Permission(700), new PermissionDictionary().deserialize(new Permission(700).serialize(SerializerFactory.get())));
        assertEquals(new Permission(400), new PermissionDictionary().deserialize(new Permission(400).serialize(SerializerFactory.get())));
    }