ComponentCache { @Nullable protected final ComponentEntry findComponentEntryByClient(@NonNull VisumClient client) { return findComponentEntryByClientClass(client.getClass()); }  @CallSuper @Nullable Object start(@NonNull VisumClient client); boolean isClientAttached(@NonNull VisumClient client); @SuppressWarnings("unused") @SafeVarargs final void register(@NonNull Func0<Object> componentFactory, Class<? extends VisumClient>... clientClasses); @CallSuper void stop(@NonNull VisumClient client, boolean retainComponent);  }
@Test public void testFindComponentOk() { assertEquals( "Can't find a ComponentEntry for the client of a registered type", getComponentEntry(), getComponentCache().findComponentEntryByClient(getClient()) ); }
@Test public void testFindComponentFail() { assertNull(getComponentCache().findComponentEntryByClient(clientTwo)); }