### Question:
TransMetaJsonDeserializer extends StdDeserializer<TransMeta> { protected void deserializeVariables( TransMeta transMeta, JsonNode node, ObjectMapper mapper ) throws IOException { ArrayNode varsArrayNode = (ArrayNode) node.get( TransMetaJsonSerializer.JSON_PROPERTY_VARIABLES ); for ( int i = 0; i < varsArrayNode.size(); i++ ) { JsonNode paramNode = varsArrayNode.get( i ); ParamInfo param = mapper.readValue( paramNode.toString(), ParamInfo.class ); transMeta.setVariable( param.getName(), param.getValue() ); } } TransMetaJsonDeserializer( Class<?> aClass );  TransMetaJsonDeserializer( Class<?> aClass, Repository repository ); Repository getRepository(); void setRepository( Repository repository ); @Override TransMeta deserialize( JsonParser parser, DeserializationContext context );  }### Answer:
@Test public void testDeserializeVariables() throws Exception { transMeta = spy( new TransMeta() ); deserializer.deserializeVariables( transMeta, root, mapper ); verify( transMeta, times( root_varsArray.size() ) ).setVariable( anyString(), anyString() ); }