Black Box Work Extraction and Composite Hypothesis Testing | Synapse