RegionData implements Iterable<T>, JsonSerializable { public void setRegionNamePath(final String regionNamePath) { Assert.hasText(regionNamePath, "The name or path of the Region must be specified!"); this.regionNamePath = regionNamePath; } RegionData();  RegionData(final String regionNamePath); String getRegionNamePath(); void setRegionNamePath(final String regionNamePath); RegionData<T> add(final T data); @SafeVarargs final RegionData<T> add(final T... data); RegionData<T> add(final Iterable<T> data); T get(final int index); boolean isEmpty(); @Override Iterator<T> iterator(); List<T> list(); int size(); @Override void serialize(final JsonGenerator jsonGenerator,
      final SerializerProvider serializerProvider); @Override void serializeWithType(final JsonGenerator jsonGenerator,
      final SerializerProvider serializerProvider, final TypeSerializer typeSerializer);  }
@Test public void shouldBeMockable() throws Exception { RegionData mockRegionData = mock(RegionData.class); String regionNamePath = "regionNamePath"; mockRegionData.setRegionNamePath(regionNamePath); verify(mockRegionData, times(1)).setRegionNamePath(regionNamePath); }