### Question:
MethodAmountPolicy implements Policy { public int getAmount() { return amount; } 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 getAmount() throws Exception { assertEquals(new MethodAmountPolicy(false,true,null,5).getAmount(), 5); }