CommandResult { public static CommandResult empty() { return withBuffer(IntBuffer.allocate(10)); } private  CommandResult(IntBuffer responseBuffer); static CommandResult empty(); static CommandResult withBuffer(IntBuffer responseBuffer); int getByteNumber(int byteNumber);  }
@Test public void emptyShouldCreateResultWithEmptyBuffer() throws Exception { sut = CommandResult.empty(); IntBuffer responseBuffer = sut.getResponseBuffer(); assertThat(responseBuffer.limit()).isEqualTo(10); }