### Question:
IcapClient implements Closeable { public int getReceiveLength() { return receiveLength; } IcapClient(final String serverIP, final int port,
                    final String icapService);  IcapClient(final String serverIP, final int port,
                    final String icapService, final int previewSize); IcapClient connect(); @Override void close(); boolean scanFile(final String filename); String getServerIP(); int getPort(); String getIcapService(); int getPreviewSize(); IcapClient setPreviewSize(final int previewSize); int getReceiveLength(); IcapClient setReceiveLength(final int receiveLength); int getSendLength(); IcapClient setSendLength(final int sendLength); long getMaxSize(); IcapClient setMaxSize(final long maxSize); long getTimeout(); IcapClient setTimeout(final int timeout); String getKeyIcapPreview(); IcapClient setKeyIcapPreview(final String keyIcapPreview); String getSubStringFromKeyIcapPreview(); IcapClient setSubStringFromKeyIcapPreview(
      final String subStringFromKeyIcapPreview); String getSubstringHttpStatus200(); IcapClient setSubstringHttpStatus200(
      final String substringHttpStatus200); String getKeyIcap200(); IcapClient setKeyIcap200(final String keyIcap200); String getSubStringFromKeyIcap200(); IcapClient setSubStringFromKeyIcap200(
      final String subStringFromKeyIcap200); String getKeyIcap204(); IcapClient setKeyIcap204(final String keyIcap204); String getSubStringFromKeyIcap204(); IcapClient setSubStringFromKeyIcap204(
      final String subStringFromKeyIcap204); Map<String, String> getFinalResult(); static final int DEFAULT_ICAP_PORT; static final String VERSION; static final String TERMINATOR; static final String ICAP_TERMINATOR; static final String HTTP_TERMINATOR; static final String EICARTEST; }### Answer:
@Test public void testGetReceiveLength() throws Exception { IcapClient icapClient = new IcapClient("127.0.0.1", 1234, "avscan"); assertEquals(64 * 1024, icapClient.getReceiveLength()); assertEquals(8192, icapClient.setReceiveLength(8192).getReceiveLength()); assertEquals(100, icapClient.setReceiveLength(100).getReceiveLength()); try { icapClient.setReceiveLength(10); fail("Should failed"); } catch (IllegalArgumentException e) { assertEquals(100, icapClient.getReceiveLength()); } }