### Question:
ConditionalGeoFencePolicy implements Policy { @Override public List<Fence> getFences() { if (fences != null) { return Collections.unmodifiableList(new ArrayList<Fence>(fences)); } else { return null; } } ConditionalGeoFencePolicy(boolean denyRootedJailbroken, boolean denyEmulatorSimulator, List<Fence> fences, Policy inside, Policy outside); @Override boolean getDenyRootedJailbroken(); @Override boolean getDenyEmulatorSimulator(); @Override List<Fence> getFences(); Policy getInside(); Policy getOutside(); @Override boolean equals(Object o);  }### Answer:
@Test public void getFences() throws Exception { List<Fence> fences = new ArrayList<>(); ConditionalGeoFencePolicy conGeoPolicy = new ConditionalGeoFencePolicy(false, false, fences, new MethodAmountPolicy(0), new MethodAmountPolicy(0)); assertEquals(fences, conGeoPolicy.getFences()); }