### Question:
MethodAmountPolicy implements Policy { @Override public List<Fence> getFences() { if (fences != null) { return Collections.unmodifiableList(new ArrayList<>(fences)); } else { return null; } } MethodAmountPolicy(boolean denyRootedJailbroken, boolean denyEmulatorSimulator, List<Fence> fences, int amountOfFactors);  MethodAmountPolicy(int amount); @Override boolean getDenyRootedJailbroken(); @Override boolean getDenyEmulatorSimulator(); @Override List<Fence> getFences(); int getAmount(); @Override boolean equals(Object o);  }### Answer:
@Test public void getFences() throws Exception { List<Fence> fences = new ArrayList<>(); fences.add(new GeoCircleFence("aFence", 0,0,5)); MethodAmountPolicy methodPolicy = new MethodAmountPolicy(false,false, fences, 0); assertEquals(fences,methodPolicy.getFences()); }