@Test
public void getLocationsByPreference_handles_empty() {

    TrustAnchor ta = new TrustAnchor();
    ta.setLocations(Lists.newArrayList());
    assertThat(ta.getLocationsByPreference()).isEmpty();
}