@Test
public void testSuccessfulCase() throws URISyntaxException {

  Attribute attribute = mock(Attribute.class);
  when(attribute.getName()).thenReturn(Metacard.RESOURCE_URI);
  when(attribute.getValue()).thenReturn("content:10101#overview");
  Metacard metacard = mock(Metacard.class);
  when(metacard.getAttribute(anyString())).thenReturn(attribute);
  ResourceRequest request = catalogInputAdapter.buildReadRequest(metacard, OVERVIEW);
  assertThat(request.getAttributeName(), is(Metacard.RESOURCE_URI));
  assertThat(request.getAttributeValue().toString(), is("content:10101#overview"));
  assertThat(request.getProperties().get(ContentItem.QUALIFIER_KEYWORD), is(OVERVIEW));
}