@Test
public void test_java() {

  mockJava();
  assertThat(SystemInfo.java()).isEqualTo("Java 1.9 oracle (64-bit)");
  when(mockSystem.getProperty("sun.arch.data.model")).thenReturn("32");
  assertThat(SystemInfo.java()).isEqualTo("Java 1.9 oracle (32-bit)");
  when(mockSystem.getProperty("sun.arch.data.model")).thenReturn(null);
  assertThat(SystemInfo.java()).isEqualTo("Java 1.9 oracle");
}