please add a test that expects MalformedEndpointException