@Override
    public CRMaterial deserialize(JsonElement json, Type type, JsonDeserializationContext context) throws JsonParseException {
        return determineJsonElementForDistinguishingImplementers(json, context, TYPE, ARTIFACT_ORIGIN);
    }
@Test
    public void shouldDeserializeSvnMaterialType() {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("type", "svn");
        materialTypeAdapter.deserialize(jsonObject, type, jsonDeserializationContext);

        verify(jsonDeserializationContext).deserialize(jsonObject, CRSvnMaterial.class);
    }