@Test(expected = IllegalArgumentException.class)
public void testMalformedURI() throws URISyntaxException {

  Attribute attribute = mock(Attribute.class);
  when(attribute.getName()).thenReturn(Metacard.RESOURCE_URI);
  when(attribute.getValue()).thenReturn("   ");
  Metacard metacard = mock(Metacard.class);
  when(metacard.getAttribute(anyString())).thenReturn(attribute);
  catalogInputAdapter.buildReadRequest(metacard, OVERVIEW);
}