@Test
public void testToBytesString() {

    final byte[] bytes = {102, 111, 111, 98, 97, 114};
    assertArrayEquals(bytes, FileUtils.toBytes("foobar"));
    assertNull(FileUtils.toBytes((String) null));
}