diff --git a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java index 0a6f4fc8..8e908db4 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java @@ -459,7 +459,9 @@ public class MockRegionFactory { } }); - when(region.getFullPath()).thenReturn(Region.SEPARATOR + name); + String fullPath = (name.startsWith(Region.SEPARATOR) ? name : Region.SEPARATOR + name); + + when(region.getFullPath()).thenReturn(fullPath); when(region.getName()).thenReturn(name); when(region.getRegionService()).thenReturn(mockRegionService);