@Test
public void shouldIgnoreNullValues() throws JsonProcessingException {
final DatasourceDependency dependency = new DatasourceDependency(null, null, "", "", emptyList(), null, null);
final String json = new ObjectMapper().writeValueAsString(dependency);
assertThat(json).isEqualTo("{\"name\":\"\",\"description\":\"\",\"type\":\"\",\"subtype\":\"\",\"criticality\":{\"level\":\"NOT_SPECIFIED\",\"disasterImpact\":\"Not Specified\"},\"expectations\":{\"availability\":\"NOT_SPECIFIED\",\"performance\":\"NOT_SPECIFIED\"},\"datasources\":[]}");
}