@Test
public void parseModifyPolicyCommand() {

    final GlobalCommandRegistry commandRegistry = GlobalCommandRegistry.getInstance();
    final ModifyPolicy command = ModifyPolicy.of(TestConstants.Policy.POLICY_ID,
            TestConstants.Policy.POLICY, TestConstants.DITTO_HEADERS);
    final JsonObject jsonObject = command.toJson(FieldType.regularOrSpecial());
    final Command parsedCommand = commandRegistry.parse(jsonObject, TestConstants.DITTO_HEADERS);
    assertThat(parsedCommand).isEqualTo(command);
}