@Test
public void emptyCertificatesFromJsonLeadToEmptyOptional() {

    final JsonObject connectionJsonWithEmptyCa = KNOWN_JSON
            .set(Connection.JsonFields.VALIDATE_CERTIFICATES, true)
            .set(Connection.JsonFields.TRUSTED_CERTIFICATES, "");
    final Connection underTest = ConnectivityModelFactory.connectionFromJson(connectionJsonWithEmptyCa);
    assertThat(underTest.getTrustedCertificates()).isEmpty();
}