### Question:
CrashlyticsReport { @NonNull public static Builder builder() { return new AutoValue_CrashlyticsReport.Builder(); }  @NonNull static Builder builder(); @Ignore Type getType(); @NonNull abstract String getSdkVersion(); @NonNull abstract String getGmpAppId(); abstract int getPlatform(); @NonNull abstract String getInstallationUuid(); @NonNull abstract String getBuildVersion(); @NonNull abstract String getDisplayVersion(); @Nullable abstract Session getSession(); @Nullable abstract FilesPayload getNdkPayload(); @NonNull CrashlyticsReport withEvents(@NonNull ImmutableList<Event> events); @NonNull CrashlyticsReport withOrganizationId(@NonNull String organizationId); @NonNull CrashlyticsReport withNdkPayload(@NonNull FilesPayload filesPayload); @NonNull CrashlyticsReport withSessionEndFields(
      long endedAt, boolean isCrashed, @Nullable String userId);  }### Answer:
@Test public void testGetBinaryImageUuidUtf8Bytes_returnsProperBytes() { final String expectedUuid = "expectedUuid"; final byte[] expectedBytes = expectedUuid.getBytes(Charset.forName("UTF-8")); final BinaryImage binaryImage = BinaryImage.builder() .setName("binary") .setBaseAddress(0) .setSize(100000) .setUuid(expectedUuid) .build(); assertArrayEquals(expectedBytes, binaryImage.getUuidUtf8Bytes()); }
@Test public void testGetBinaryImageUuidUtf8Bytes_returnsNullWhenUuidIsNull() { final String expectedUuid = null; final byte[] expectedBytes = null; final BinaryImage binaryImage = BinaryImage.builder() .setName("binary") .setBaseAddress(0) .setSize(100000) .setUuid(expectedUuid) .build(); assertArrayEquals(expectedBytes, binaryImage.getUuidUtf8Bytes()); }
@Test public void testSetBinaryImageUuidUtf8Bytes_returnsProperUuid() { final String expectedUuid = "expectedUuid"; final byte[] expectedBytes = expectedUuid.getBytes(Charset.forName("UTF-8")); final BinaryImage binaryImage = BinaryImage.builder() .setName("binary") .setBaseAddress(0) .setSize(100000) .setUuidFromUtf8Bytes(expectedBytes) .build(); assertEquals(expectedUuid, binaryImage.getUuid()); }