### Question:
Policy { public String getPolicyType() { return policyType; } @JsonCreator @JsonIgnoreProperties(ignoreUnknown = true)  Policy(
            @JsonProperty("type") String policyTypeString,
            @JsonProperty("deny_rooted_jailbroken") Boolean denyRootedJailbroken,
            @JsonProperty("deny_emulator_simulator") Boolean denyEmulatorSimulator,
            @JsonProperty("fences") List<Fence> fences, @JsonProperty("factors") ArrayNode factors,
            @JsonProperty("amount") Integer amount, @JsonProperty("inside") Policy inPolicy,
            @JsonProperty("outside") Policy outPolicy, @JsonProperty("minimum_requirements") List<MinimumRequirement> minimumRequirements); String getPolicyType(); List<Fence> getFences(); Boolean getDenyRootedJailbroken(); Boolean getDenyEmulatorSimulator(); ArrayNode getFactors(); Integer getAmount(); Policy getInPolicy(); Policy getOutPolicy(); List<MinimumRequirement> getMinimumRequirements(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE_METHOD_AMOUNT; static final String TYPE_FACTORS; static final String TYPE_COND_GEO; static final String TYPE_LEGACY; }### Answer:
@Test public void getPolicyType() { Policy policy = new Policy("type", null,null,null,null, null, null, null, null); assertEquals(policy.getPolicyType(),"type"); }