### Question:
AzureNetworkV4Parameters extends MappableBase { @Override public Map<String, Object> asMap() { Map<String, Object> map = super.asMap(); putIfValueNotNull(map, SUBNETS, subnets); return map; }  String getSubnets(); void setSubnets(String subnets); @Override Map<String, Object> asMap(); @Override @JsonIgnore @ApiModelProperty(hidden = true) CloudPlatform getCloudPlatform(); @Override void parse(Map<String, Object> parameters);  }### Answer:
@Test public void testAsMap() { underTest.setSubnets("someSubnets"); assertThat(underTest.asMap()).containsOnly(Map.entry("subnets", "someSubnets"), Map.entry("cloudPlatform", "AZURE")); }