@Test
void testGetResourceAsStream() {

    ByteArrayResource resource = new ByteArrayResource("mylocation", new byte[0]);
    assertTrue(resource.getResourceAsStream("mylocation") instanceof ByteArrayInputStream);
    assertNull(resource.getResourceAsStream("notmylocation"));
}