Diacetyl { public static void butterForTests(Object... instancesWithViews) { Diacetyl diacetyl = new Diacetyl(); for (Object instanceWithViews : instancesWithViews) { diacetyl.bindForTests(instanceWithViews); } }  static void butterForTests(Object... instancesWithViews);  }
@Test public void should_fill_views() { Diacetyl.butterForTests(exampleClass); assertThat(exampleClass.normalView).isNotNull(); assertThat(exampleClass.supportView).isNotNull(); }
@Test public void should_fill_custom_views() { Diacetyl.butterForTests(exampleClass); assertThat(exampleClass.customView).isNotNull(); }
@Test public void should_not_remove_pre_filled_views() { Diacetyl.butterForTests(exampleClass); assertThat(exampleClass.nonNulView.getText()).isEqualTo("preset"); }