@Test
public void yamlTest() throws IOException {

    when(arguments.getYaml())
            .thenReturn(extractTestResourceAsTempFile("message.yaml"));
    // Verify
    final Message messageRead = target.read(Message.class);
    assertThat(messageRead)
            .isEqualTo(TEXT_MESSAGE_EXPECTED);
}