### Question:
ImmutableNamespaces implements Namespaces { @Override public List<String> getPrefixes(String namespaceURI) { List<String> list=new ArrayList<String>(); for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { list.add(entry.getKey()); } } return list; } private  ImmutableNamespaces(Map<String,String> map);  ImmutableNamespaces(); ImmutableNamespaces withPrefix(String prefix, String namespaceURI); ImmutableNamespaces withoutPrefix(String... prefixes); @Override Set<String> getDeclaredPrefixes(); @Override String getNamespaceURI(String prefix); @Override String getPrefix(String namespaceURI); @Override List<String> getPrefixes(String namespaceURI); @Override String toString();  }### Answer:
@Test public void testGetPrefixes$found() throws Exception { assertThat(this.sut.getPrefixes(DEFAULT_NAMESPACE),containsInAnyOrder(DEFAULT_PR1,DEFAULT_PR2)); }
@Test public void testGetPrefixes$notFound() throws Exception { assertThat(this.sut.getPrefixes("not found"),hasSize(0)); }