@@ -0,0 +1,1312 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;%0Aimport com.fasterxml.jackson.annotation.PropertyAccessor;%0Aimport com.fasterxml.jackson.databind.*;%0A%0Apublic class RequireSetterForGetter736Test extends BaseMapTest%0A%7B%0A    public static class DataB %7B%0A        private int readonly;%0A        private int readwrite;%0A%0A        public DataB() %7B%0A            readonly = 1;%0A            readwrite = 2;%0A        %7D%0A%0A        public int getReadwrite() %7B%0A            return readwrite;%0A        %7D%0A        public void setReadwrite(int readwrite) %7B%0A            this.readwrite = readwrite;%0A        %7D%0A        public int getReadonly() %7B%0A            return readonly;%0A        %7D%0A    %7D%0A%0A    // for %5Bdatabind#736%5D%0A    public void testNeedForSetters() throws Exception%0A    %7B%0A        ObjectMapper mapper = new ObjectMapper(); %0A        mapper.setVisibility(PropertyAccessor.ALL, Visibility.NONE);%0A        mapper.setVisibility(PropertyAccessor.GETTER, Visibility.PUBLIC_ONLY);%0A        mapper.setVisibility(PropertyAccessor.SETTER, Visibility.PUBLIC_ONLY);%0A        mapper.enable(MapperFeature.REQUIRE_SETTERS_FOR_GETTERS);%0A        DataB dataB = new DataB();%0A%0A        String json = mapper.writeValueAsString(dataB);%0A        assertEquals(aposToQuotes(%22%7B'readwrite':2%7D%22), json);%0A        %0A    %7D%0A%7D%0A

Add a (failing) test for #736