{"task": {"agent_timeout": 3000, "task": "testgen__fasterxml__jackson-databind-3716", "verifier_timeout": 3000, "instruction": "The following text contains a user issue (in <issue/> brackets) posted at a repository. Further, you are provided with file contents of several files in the repository that contain relevant code (in <code> brackets). It may be necessary to use code from third party dependencies or files not contained in the attached documents however. Your task is to identify the issue and implement a test case that verifies a proposed solution to this issue. More details at the end of this text.\n<issue>\n      **Describe the bug**\nWhen an interface type is being used for an attribute and an enum implements this interface, resulting serialization and deserialization behavior is incorrect.\n\n**Version information**\n2.14.1\n\n**To Reproduce**\nIf you have a way to reproduce this with:\n\n```java\n// POJO\npublic class Animal {\n\n    private LivingBeingType type;\n\n    private String name;\n    // getters and setters\n}\n\n@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)\n@JsonSubTypes({@JsonSubTypes.Type(value = AnimalType.class)})\npublic interface LivingBeingType {\n}\n\npublic enum AnimalType implements LivingBeingType {\n    FOURLEGGED, TWOLEGGED\n}\n\n    public static void main(String[] args) throws JsonProcessingException {\n        ObjectMapper objectMapper = new ObjectMapper();\n\n        // Serialization\n        Animal animal = new Animal();\n        animal.setName(\"Horse\");\n        animal.setType(AnimalType.FOURLEGGED);\n        System.out.println(\"***Serialization***\");\n        System.out.println(objectMapper.writeValueAsString(animal));\n\n        // Deserialization\n        String json = \"{\\\"type\\\":\\\"FOURLEGGED\\\",\\\"name\\\":\\\"Horse\\\"}\";\n        System.out.println(\"***Deserialization***\");\n        System.out.println(objectMapper.readValue(json, Animal.class));\n    }\n```\n***Output :***\n```\n***Serialization***\n{\"type\":[\"com.smilep.jackson.AnimalType\",\"FOURLEGGED\"],\"name\":\"Horse\"}\n\n\n***Deserialization***\nException in thread \"main\" com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve subtype of [simple type, class com.smilep.jackson.LivingBeingType]: Unexpected input\n at [Source: (String)\"{\"type\":\"FOURLEGGED\",\"name\":\"Horse\"}\"; line: 1, column: 9] (through reference chain: com.smilep.jackson.Animal[\"type\"])\n    at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43)\n    at com.fasterxml.jackson.databind.DeserializationContext.missingTypeIdException(DeserializationContext.java:2088)\n    at com.fasterxml.jackson.databind.DeserializationContext.handleMissingTypeId(DeserializationContext.java:1601)\n    at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleMissingTypeId(TypeDeserializerBase.java:307)\n    at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedUsingDefaultImpl(AsPropertyTypeDeserializer.java:185)\n    at com.fasterxml.jackson.databind.jsontype.impl.AsDeductionTypeDeserializer.deserializeTypedFromObject(AsDeductionTypeDeserializer.java:110)\n    at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)\n    at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:138)\n    at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:314)\n    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177)\n    at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)\n    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4730)\n    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3677)\n    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3645)\n    at com.smilep.jackson.JacksonMain.main(JacksonMain.java:20)\n\nProcess finished with exit code 1\n\n```\n\n**Expected behavior**\nSerialization should produce `{\"type\":\"FOURLEGGED\",\"name\":\"Horse\"}`\nDeserialization should produce `Animal` instance with `type` having value of `AnimalType.FOURLEGGED` instance.\n\n</issue>\nPlease generate test cases that check whether an implemented solution resolves the issue of the user (at the top, within <issue/> brackets).\nYou may apply changes to several files.\nApply as much reasoning as you please and see necessary.\nMake sure to implement only test cases and don't try to fix the issue itself.\nYou are not allowed to read git history.\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": "", "instruction_truncated": false, "category": "test-generation", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "devopsgym", "tags": ["test-generation", "devops-bench"]}, "runs": []}