### Question:
PlatformDataReaderFactory implements DataReaderFactory { @Override public Reader getReader() throws ConnectorSDKException { return getReader(null); } PlatformDataReaderFactory(DataWiringParam param, CatalogService cs, DataAccessService das, HttpClient httpClient); @Override Reader getReader(); @Override Reader getReader(Map<String,String> readerAttributes);  }### Answer:
@Test public void testGetReaderWithoutAttributes() throws ConnectorSDKException { Reader reader = readerFactory.getReader(); assertTrue(reader != null); assertTrue(reader instanceof DataAccessAPIReader); }
@Test(expected = ConnectorSDKException.class) public void testGetReaderWithOneReaderAttribute() throws ConnectorSDKException { Map<String,String> readAttributeMap = new HashMap<>(); readAttributeMap.put(SDKConstants.CONNECTOR_READ_ATTRIBUTE_EPOCHTIME,"1509011304784"); readerFactory.getReader(readAttributeMap); }
@Test public void testGetReaderADLPath() throws ConnectorSDKException { Reader reader = readerFactory.getReader(readAttributeMap); assertTrue(reader != null); assertTrue(reader instanceof DataAccessAPIReader); }
@Test public void testGetReaderLookupPath() throws ConnectorSDKException { Mockito.when(dsv.getIsLookup()).thenReturn(true); Reader reader = readerFactory.getReader(readAttributeMap); assertTrue(reader != null); }