### Question:
KubernetesUtils { public static BigInteger getResourceVersion(V1ObjectMeta metadata) { return getResourceVersion(Optional.ofNullable(metadata).map(V1ObjectMeta::getResourceVersion).orElse(null)); }  static boolean isFirstNewer(V1ObjectMeta first, V1ObjectMeta second); static BigInteger getResourceVersion(V1ObjectMeta metadata); static BigInteger getResourceVersion(String resVersion); static V1ObjectMeta withOperatorLabels(String uid, V1ObjectMeta meta);  }### Answer:
@Test public void whenHaveSmallResourceVersion_parseCorrectly() { String resVersion = "1"; BigInteger bigInteger = KubernetesUtils.getResourceVersion(resVersion); assertThat(bigInteger, is(BigInteger.ONE)); }
@Test public void whenHaveNullResourceVersion_parseCorrectly() { BigInteger bigInteger = KubernetesUtils.getResourceVersion((String) null); assertThat(bigInteger, is(BigInteger.ZERO)); }
@Test public void whenHaveOpaqueResourceVersion_parseCorrectly() { String resVersion = "123NotANumber456"; BigInteger bigInteger = KubernetesUtils.getResourceVersion(resVersion); assertThat(bigInteger, is(BigInteger.ZERO)); }