@Test
public void shouldParseWithExternalId() throws Exception {
when(conversionService.fromJson(jsonObject("{\"externalId\":\"some_id\",\"type\":\"some_type\"}"), same(ExternalIDRepresentation.class))).thenReturn(externalId);
JSONObject json = new JSONObject("{\"externalIds\":[{\"externalId\":\"some_id\",\"type\":\"some_type\"}]}");
ExternalIDCollectionRepresentation parsed = (ExternalIDCollectionRepresentation) converter.fromJson(json);
assertThat(parsed.getExternalIds().size()).isEqualTo(1);
assertThat(parsed.getExternalIds().get(0)).isSameAs(externalId);
}