### Question:
SPPElementStreamFactory extends MALElementStreamFactory { @Override protected void init(final String protocol, final Map properties) throws IllegalArgumentException, MALException { if (protocol == null) { throw new IllegalArgumentException(ILLEGAL_NULL_ARGUMENT); } this.properties = properties; }  @Override MALElementInputStream createInputStream(final InputStream is); @Override MALElementInputStream createInputStream(final byte[] bytes, final int offset); @Override MALElementOutputStream createOutputStream(final OutputStream os); @Override Blob encode(final Object[] elements, final MALEncodingContext ctx);  }### Answer:
@Test public void testInit() throws Exception { String protocol = ""; Map properties = null; SPPElementStreamFactory instance = new SPPElementStreamFactory(); instance.init(protocol, properties); }
@Test(expected = IllegalArgumentException.class) public void testInitExpectedExcpetion() throws Exception { String protocol = null; Map properties = null; SPPElementStreamFactory instance = new SPPElementStreamFactory(); instance.init(protocol, properties); }