### Question:
PlatformDataWriterFactory implements DataWriterFactory { @Override public Writer getWriter() throws ConnectorSDKException { return this.getWriter(new WriteAttributes.WriteAttributesBuilder().build()); } PlatformDataWriterFactory(DataWiringParam param,
                                     CatalogService cs,
                                     DataIngestionService dis,
                                     HttpClient httpClient,
                                     PlatformDataFormatterFactory formatterFactory); @Override Writer getWriter(); @Override Writer getWriter(WriteAttributes writeAttributes);  }### Answer:
@Test public void testGetWriter() { ParquetIOWriter writer = new ParquetIOWriterImpl(); PlatformDataFormatterFactory formatterFactory = new PlatformDataFormatterFactory(writer, param, registryFactory); PlatformDataWriterFactory platWriter = new PlatformDataWriterFactory(param, catService, dis, httpClient, formatterFactory); try { Mockito.when(dis.getBatchId(Mockito.any(), Mockito.any(), Mockito.any())).thenReturn("sfdsgsgsdgtw"); assertTrue(platWriter.getWriter() != null); } catch (ConnectorSDKException e) { e.printStackTrace(); } }