### Question:
UZRestClient { public static void init(String baseApiUrl) { init(baseApiUrl, ""); }  static void init(String baseApiUrl); static void init(String baseApiUrl, String token); static Retrofit getRetrofit(); static S createService(Class<S> serviceClass); static void addHeader(String name, String value); static void addAuthorization(String token); static void removeAuthorization(); static void removeHeader(String name); static boolean hasHeader(String name);  }### Answer:
@Test public void init_emptyBaseApiUrl_error() { PowerMockito.when(TextUtils.isEmpty(anyString())).thenReturn(true); try { UZRestClient.init(validURL); } catch (Exception e) { assertTrue(e instanceof InvalidParameterException); assertEquals(e.getMessage(), "baseApiUrl cannot null or empty"); } }
@Test public void init_invalidUrlFormat_error() { PowerMockito.when(TextUtils.isEmpty(anyString())).thenReturn(false); try { UZRestClient.init(inValidURL); } catch (Exception e) { assertTrue(e instanceof IllegalArgumentException); } }