### Question:
GetCharacteristicsTask { public Characteristics execute(String cameraId) { try { return new Characteristics( manager.getCameraCharacteristics(cameraId) ); } catch (CameraAccessException e) { throw new CameraException(e); } } GetCharacteristicsTask(CameraManager manager); Characteristics execute(String cameraId);  }### Answer:
@Test public void getCharacteristics() throws Exception { Characteristics call = testee.execute("0"); assertNotNull(call); }
@Test(expected = CameraException.class) public void managerException_exception() throws Exception { given(manager.getCameraCharacteristics(anyString())) .willThrow(CameraAccessException.class); Characteristics call = testee.execute("0"); }