### Question:
SetTextureBufferSizeTask implements Runnable { @Override public void run() { surfaceTexture.setDefaultBufferSize(previewSize.width, previewSize.height); } SetTextureBufferSizeTask(SurfaceTexture surfaceTexture, Size previewSize); @Override void run();  }### Answer:
@Test public void setBufferSize() throws Exception { Size previewSize = new Size(1920, 1080); SetTextureBufferSizeTask testee = new SetTextureBufferSizeTask(surfaceTexture, previewSize); testee.run(); verify(surfaceTexture).setDefaultBufferSize(previewSize.width, previewSize.height); }