### Question:
ScriptOutputOpReturn extends ScriptOutput implements Serializable { protected static boolean isScriptOutputOpReturn(byte[][] chunks) { return chunks.length == 2 && Script.isOP(chunks[0], OP_RETURN) && chunks[1] != null && chunks[1].length > 0; } protected  ScriptOutputOpReturn(byte[][] chunks, byte[] scriptBytes); byte[] getDataBytes(); @Override Address getAddress(NetworkParameters network);  }### Answer:
@Test public void isScriptOutputOpReturnTest() throws Exception { byte[][] chunks = new byte[2][]; chunks[0]=new byte[]{OP_RETURN}; assertFalse(isScriptOutputOpReturn(chunks)); assertTrue(isScriptOutputOpReturn(new byte[][]{{OP_RETURN}, "Hallotest".getBytes()})); assertFalse(isScriptOutputOpReturn(new byte[][]{{OP_RETURN}, null})); assertFalse(isScriptOutputOpReturn(new byte[][]{{OP_RETURN}, "".getBytes()})); assertFalse(isScriptOutputOpReturn(new byte[][]{null, "Hallo".getBytes()})); }